/* ==========================================================================
   Inticka Investment Limited — site styles

   ONE stylesheet, no framework, no build step. This site is a corporate
   shopfront that has to keep working untouched for years; a dependency tree is
   a liability here, not an asset.

   Light is the base theme and dark is an override under prefers-color-scheme.
   Corporate sites are read in daylight, on desktops, by reviewers — light is the
   expectation, and dark is the courtesy.
   ========================================================================== */

:root {
    /* --- brand ---------------------------------------------------------- */
    --ink: #0b1020;
    --ink-2: #364059;
    --ink-3: #6b7690;
    --line: #e3e7f0;
    --bg: #ffffff;
    --bg-2: #f6f8fc;
    --bg-3: #eef2f9;

    --brand: #1f3bb3;
    --brand-2: #2a4ee0;
    --brand-ink: #ffffff;
    --accent: #00b39f;

    --danger: #b42318;
    --ok: #067647;

    /* --- rhythm --------------------------------------------------------- */
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 12px 32px -12px rgba(11, 16, 32, 0.16);
    --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06);
    --maxw: 1140px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", sans-serif;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eef1f8;
        --ink-2: #b9c1d4;
        --ink-3: #8790a6;
        --line: #232a3d;
        --bg: #0a0e1a;
        --bg-2: #0f1425;
        --bg-3: #151b2f;

        --brand: #7b93ff;
        --brand-2: #6f88ff;
        --brand-ink: #0a0e1a;
        --accent: #37d6c0;

        --danger: #ff9a90;
        --ok: #5fd39b;

        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);

        color-scheme: dark;
    }
}

/* ---------------------------------------------------------------- reset -- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Keyboard users must be able to jump the navigation. */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: var(--brand-ink);
    padding: 0.75rem 1rem;
    z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus {
    left: 0;
}

/* ------------------------------------------------------------- typography */

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
}
h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
}
h3 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    letter-spacing: -0.01em;
}

p {
    text-wrap: pretty;
}

.lede {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: var(--ink-2);
    /* Long measures are the fastest way to make a page feel unreadable. */
    max-width: 62ch;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.muted {
    color: var(--ink-3);
}

/* ----------------------------------------------------------------- layout */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem);
}

.section--tint {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
}

.section__head {
    max-width: 64ch;
    margin-bottom: clamp(2rem, 1rem + 3vw, 3rem);
}

.grid {
    display: grid;
    gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

/* auto-fit + minmax is what makes every card grid responsive with no
   breakpoints at all — columns collapse when they can no longer fit. */
.grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid--two {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

/* ---------------------------------------------------------------- header */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.15rem;
    margin-right: auto;
}

.brand__mark {
    width: 32px;
    height: 32px;
    flex: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
}

.nav a:hover {
    color: var(--ink);
    background: var(--bg-3);
}

.nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    /* 44px minimum — the same touch-target floor the apps use. */
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
}

@media (max-width: 860px) {
    .nav__toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1.25rem;
        box-shadow: var(--shadow);
        /* Hidden with `display` rather than opacity so the links leave the tab
           order entirely while the menu is closed. */
        display: none;
    }

    .nav[data-open="true"] {
        display: flex;
    }

    .nav a {
        padding: 0.9rem 0.5rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 1rem;
    }

    .nav .btn {
        margin-top: 0.9rem;
        justify-content: center;
        border-bottom: 0;
    }
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--brand);
    color: var(--brand-ink);
}

.btn--primary:hover {
    background: var(--brand-2);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover {
    background: var(--bg-3);
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ------------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border-bottom: 1px solid var(--line);
}

/* Decorative only — hidden from assistive tech, and it must never intercept
   a click on the buttons sitting above it. */
.hero::before {
    content: "";
    position: absolute;
    inset: -40% 55% auto -10%;
    height: 120%;
    background: radial-gradient(
        closest-side,
        color-mix(in srgb, var(--brand) 18%, transparent),
        transparent
    );
    pointer-events: none;
}

.hero__inner {
    position: relative;
}

.hero h1 {
    max-width: 20ch;
}

.hero .lede {
    margin-top: 1.25rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}

/* ------------------------------------------------------------------ cards */

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
    box-shadow: var(--shadow-sm);
}

.card--tint {
    background: var(--bg-2);
}

.card h3 {
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--ink-2);
    font-size: 0.96rem;
}

.card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    color: var(--brand);
    margin-bottom: 1.1rem;
}

.card__icon svg {
    width: 21px;
    height: 21px;
}

/* ------------------------------------------------------------------ stats */

.stat {
    padding: 1.25rem 0;
}

.stat__value {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Registration numbers and dates must not reflow between weights. */
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: 0.15rem;
}

/* ------------------------------------------------------------------- team */

.person {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.person__avatar {
    width: 84px;
    height: 84px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.person__role {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------- long-form */

.prose {
    max-width: 72ch;
}

.prose h2 {
    margin-top: 2.75rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
}

.prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.prose p,
.prose li {
    color: var(--ink-2);
}

.prose p + p {
    margin-top: 1rem;
}

.prose ul,
.prose ol {
    margin: 1rem 0 0;
    padding-left: 1.35rem;
}

.prose li + li {
    margin-top: 0.5rem;
}

.prose strong {
    color: var(--ink);
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink-2);
}

.list-check li + li {
    margin-top: 0.7rem;
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ forms */

.form {
    display: grid;
    gap: 1.1rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}

.field input,
.field textarea {
    font: inherit;
    /* 16px minimum, or iOS Safari zooms the page on focus. */
    font-size: 16px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    width: 100%;
    min-height: 46px;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.field__hint {
    font-size: 0.8rem;
    color: var(--ink-3);
}

/* Spam honeypot. Hidden from people AND from screen readers, but still a real
   field a naive bot will happily fill in. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.formnote {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    border: 1px solid var(--line);
    background: var(--bg-2);
}

.formnote--ok {
    color: var(--ok);
    border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
    background: color-mix(in srgb, var(--ok) 8%, var(--bg));
}

.formnote--bad {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
    background: color-mix(in srgb, var(--danger) 8%, var(--bg));
}

[hidden] {
    display: none !important;
}

/* -------------------------------------------------------------------- cta */

.cta {
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent)));
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(1.75rem, 1rem + 4vw, 3.25rem);
    text-align: center;
}

.cta h2,
.cta p {
    color: #fff;
}

.cta p {
    margin-inline: auto;
    max-width: 52ch;
    margin-top: 0.75rem;
    opacity: 0.92;
}

.cta .btn--primary {
    background: #fff;
    color: var(--brand);
    margin-top: 1.75rem;
}

.cta .btn--primary:hover {
    background: #f0f3ff;
}

/* ----------------------------------------------------------------- footer */

.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) 2rem;
    font-size: 0.92rem;
}

.footer__grid {
    display: grid;
    gap: clamp(1.75rem, 1rem + 3vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.footer h4 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.9rem;
}

.footer a {
    color: var(--ink-2);
    text-decoration: none;
    display: inline-block;
    padding-block: 0.3rem;
}

.footer a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.footer address {
    font-style: normal;
    color: var(--ink-2);
}

.footer__legal {
    margin-top: clamp(2rem, 1rem + 3vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    color: var(--ink-3);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------- utility */

.center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Wide content must scroll inside its own box — never the page body. */
.scroll-x {
    overflow-x: auto;
}
