@font-face {
    font-family: 'DIN Next';
    src: url('../res/font/DINNextLTArabic-UltraLight-.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next';
    src: url('../res/font/DINNEXTLTARABIC-LIGHT.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next';
    src: url('../res/font/DINNextLTArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next';
    src: url('../res/font/DINNextLTArabic-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --cai-navy: #070540;
    --cai-navy-deep: #04032a;
    --cai-navy-mid: #0c0a5c;
    --cai-blue: #3ba4e6;
    --cai-blue-soft: #6bb8e8;
    --cai-ink: #12162a;
    --cai-muted: #5c6478;
    --cai-line: #d8dee8;
    --cai-surface: #ffffff;
    --cai-fog: #eef1f7;
}

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

html {
    scroll-behavior: smooth;
}

body.verify-home {
    font-family: 'DIN Next', 'Segoe UI', sans-serif;
    color: var(--cai-ink);
    background: var(--cai-fog);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* —— Hero (full-bleed brand plane) —— */
.verify-hero {
    position: relative;
    isolation: isolate;
    min-height: min(100vh, 820px);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(59, 164, 230, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 95% 70%, rgba(12, 10, 92, 0.55), transparent 50%),
        linear-gradient(165deg, var(--cai-navy) 0%, var(--cai-navy-deep) 48%, #08153f 100%);
    color: #fff;
    overflow: hidden;
}

.verify-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    animation: heroGrid 32s linear infinite;
}

.verify-hero::after {
    content: '';
    position: absolute;
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    border: 1px solid rgba(59, 164, 230, 0.16);
    border-radius: 50%;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: heroRing 10s ease-in-out infinite;
    pointer-events: none;
}

.verify-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
    gap: 1rem;
}

.verify-nav .brand-logo img {
    height: clamp(48px, 7vw, 64px);
    width: auto;
    display: block;
}

.verify-nav-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

.verify-nav-link:hover {
    color: var(--cai-blue-soft);
}

.verify-hero-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
    animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.verify-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cai-blue-soft);
    margin-bottom: 1.1rem;
}

.verify-hero-main h1 {
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    max-width: 16ch;
    margin: 0 auto 1rem;
}

.verify-hero-main .lede {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 34rem;
    margin: 0 auto 2.25rem;
}

/* Search as primary CTA — interaction surface */
.verify-search {
    width: 100%;
    max-width: 560px;
}

.verify-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--cai-blue);
}

.search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 1.1rem 1.25rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--cai-ink);
}

.search-bar input::placeholder {
    color: #9aa3b5;
    font-weight: 300;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    flex-shrink: 0;
    border: none;
    background: var(--cai-blue);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 1.6rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-bar button:hover {
    background: #2b93d4;
}

.search-bar button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.search-hint {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
}

/* —— About (below fold) —— */
.verify-about {
    background: var(--cai-fog);
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.verify-about-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    animation: sectionFade 0.8s ease both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

@supports not (animation-timeline: view()) {
    .verify-about-inner {
        animation: none;
        opacity: 1;
    }
}

.verify-about-inner h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--cai-navy);
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}

.verify-about-inner p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--cai-muted);
}

.verify-about-rule {
    width: 48px;
    height: 2px;
    background: var(--cai-blue);
    margin: 0 auto 1.5rem;
    border: none;
}

/* —— Footer —— */
.verify-footer {
    margin-top: auto;
    background: var(--cai-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 300;
}

.verify-footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.verify-footer a:hover {
    color: var(--cai-blue-soft);
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGrid {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(56px);
    }
}

@keyframes heroRing {
    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .verify-hero {
        min-height: auto;
    }

    .verify-hero-main {
        padding-top: 2.5rem;
        padding-bottom: 3.25rem;
        align-items: stretch;
        text-align: left;
    }

    .verify-hero-main h1 {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .verify-hero-main .lede {
        margin-left: 0;
        margin-right: 0;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 10px;
    }

    .search-bar button {
        padding: 1rem 1.25rem;
    }

    .verify-footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
