@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================
   TOKENS
   ======================== */
:root {
    --bg: #0D111F;
    --surface: #131B2E;
    --elevated: #1A2340;
    --border: #1E293B;
    --accent: #3B82F6;
    --accent-h: #2563EB;
    --accent-l: #60A5FA;
    --accent-m: rgba(59, 130, 246, 0.12);
    --accent-g: rgba(59, 130, 246, 0.22);
    --t1: #F1F5F9;
    --t2: #94A3B8;
    --t3: #64748B;
    --green: #22C55E;
    --green-l: #4ade80;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--t2);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================
   FLUID CONTAINER
   No fixed max-width — spreads to full viewport
   ======================== */
.c {
    width: 100%;
    padding: 0 clamp(16px, 4vw, 80px);
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1,
h2,
h3,
h4 {
    color: var(--t1);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.grad {
    background: linear-gradient(130deg, #93c5fd, #3B82F6 50%, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 13px;
    border-radius: 50px;
    width: fit-content;
}

.chip-b {
    background: var(--accent-m);
    border: 1px solid rgba(59, 130, 246, .25);
    color: var(--accent-l);
}

.chip-g {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    color: var(--green-l);
}

.dot-live {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: dPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes dPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.7)
    }
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    text-decoration: none;
    font-size: .95rem;
}

.btn-p {
    background: var(--accent);
    color: #fff;
    padding: 14px 30px;
    box-shadow: 0 4px 18px var(--accent-g);
}

.btn-p:hover {
    background: var(--accent-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(59, 130, 246, .4);
    color: #fff;
}

.btn-g {
    background: transparent;
    color: var(--t2);
    padding: 14px 30px;
    border: 1px solid var(--border);
}

.btn-g:hover {
    background: var(--elevated);
    color: var(--t1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 9px 20px;
    font-size: .85rem;
}

/* ========================
   NAVBAR
   ======================== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 10px 0;
    transition: all .3s;
    background: #181B2A;
    border-bottom: 1px solid rgba(30, 41, 59, .6);
}

#nav.scrolled {
    background: rgba(24, 27, 42, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 5px 0;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ─── Enlagred Navbar Brand with Subtitle ─────────────── */
.nav-brand-block {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 20px);
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    /* Prevent flex overflow */
}

.nav-brand-block img {
    width: clamp(40px, 6vw, 75px);
    height: clamp(40px, 6vw, 75px);
    flex-shrink: 0;
}

.nav-brand-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    /* Prevent text overflow */
}

.nav-brand-name {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--t1);
    letter-spacing: -.03em;
    line-height: 1;
    white-space: nowrap;
}

.nav-brand-sub {
    font-size: clamp(.55rem, 1.5vw, .75rem);
    font-weight: 700;
    color: var(--accent-l);
    letter-spacing: .08em;
    text-transform: lowercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--t2);
    padding: 8px 18px;
    border-radius: 8px;
    transition: all .2s;
}

.nav-links a:hover {
    background: var(--elevated);
    color: var(--t1);
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .nav-row {
        gap: 8px;
    }

    .nav-end {
        gap: 6px;
    }

    .nav-end .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .nav-end .btn-sm svg {
        width: 11px;
        height: 11px;
    }

    .c {
        padding: 0 12px;
    }

    /* Slightly reduce container padding on very small screens to give navbar more room */
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--t2);
    border-radius: 2px;
}

/* ========================
   HERO
   Full viewport, logo + big headline dominate
   ======================== */
#hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.blob-1 {
    width: 65vw;
    height: 65vh;
    background: radial-gradient(circle, rgba(59, 130, 246, .14) 0%, transparent 70%);
    top: -10vh;
    right: -10vw;
    animation: bm 14s ease-in-out infinite alternate;
}

.blob-2 {
    width: 45vw;
    height: 55vh;
    background: radial-gradient(circle, rgba(129, 140, 248, .1) 0%, transparent 70%);
    bottom: -10vh;
    left: 5vw;
    animation: bm 10s ease-in-out infinite alternate-reverse;
}

@keyframes bm {
    from {
        transform: translate(0, 0) scale(1)
    }

    to {
        transform: translate(3vw, -2vh) scale(1.06)
    }
}

/* Hero: two-column fluid grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding: clamp(40px, 6vw, 90px) 0;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.5vw, 30px);
}

.hero-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Headline */
.hero-logo-block img {
    /* No glowing box-shadow! Just pure image, blending perfectly with bg */
    width: clamp(75px, 10vw, 125px);
}

/* Headline */
.hero-h1 {
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: clamp(.92rem, 1.3vw, 1.12rem);
    line-height: 1.8;
    color: var(--t2);
    max-width: 520px;
}

.hero-sub strong {
    color: var(--t1);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.plat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plat-row>span {
    font-size: .78rem;
    color: var(--t3);
    font-weight: 500;
}

.plat-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--t2);
    transition: border-color .2s;
}

.plat-tag img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.plat-tag:hover {
    border-color: var(--accent);
    color: var(--t1);
}

/* Screenshot wrapper — always 16:9 */
.hero-img-wrap {
    position: relative;
}

.ss-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(59, 130, 246, .06);
    aspect-ratio: 16/9;
    width: 100%;
    background: var(--surface);
}

.ss-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating badge over screenshot */
.ss-badge {
    position: absolute;
    bottom: -14px;
    left: -14px;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    animation: flt 5s ease-in-out infinite alternate;
}

@keyframes flt {
    from {
        transform: translateY(0)
    }

    to {
        transform: translateY(-6px)
    }
}

.ss-badge .b-ico {
    font-size: 1.3rem;
}

.ss-badge .b-l1 {
    font-size: .78rem;
    font-weight: 800;
    color: var(--t1);
}

.ss-badge .b-l2 {
    font-size: .65rem;
    color: var(--t3);
    margin-top: 2px;
}

/* ========================
   FEATURES
   ======================== */
#features {
    padding: clamp(60px, 8vw, 110px) 0;
}

.sec-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.sec-h h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.sec-h p {
    font-size: clamp(.88rem, 1.1vw, 1rem);
    line-height: 1.75;
    color: var(--t2);
    max-width: 560px;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }

    .feat-card.wide {
        grid-column: span 1;
        flex-direction: column;
    }
}

.feat-card {
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all .25s;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-l));
    opacity: 0;
    transition: opacity .25s;
}

.feat-card:hover {
    border-color: rgba(59, 130, 246, .3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.feat-card:hover::before {
    opacity: 1;
}

.feat-card.wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 22px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .08), var(--elevated));
    border-color: rgba(59, 130, 246, .2);
}

.feat-card.wide::before {
    opacity: 1;
}

.feat-card.wide .fb {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feat-ico {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--accent-m);
    border: 1px solid rgba(59, 130, 246, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-l);
    flex-shrink: 0;
}

.feat-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -.01em;
}

.feat-card p {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--t2);
}

/* ========================
   SCREENSHOT SECTIONS
   content + 16:9 image side by side, alternating
   ======================== */
.ss-section {
    padding: clamp(60px, 8vw, 110px) 0;
}

.ss-section.alt {
    background: var(--surface);
}

.ss-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.ss-grid.flip {
    direction: rtl;
}

.ss-grid.flip>* {
    direction: ltr;
}

.ss-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ss-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.ss-text p {
    font-size: clamp(.88rem, 1.1vw, 1rem);
    line-height: 1.8;
}

.ss-img-wrap {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .45);
    background: var(--surface);
}

.ss-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================
   ABOUT
   ======================== */
#about {
    padding: clamp(60px, 8vw, 110px) 0;
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
}

.about-txt {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-txt h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.about-txt p {
    font-size: clamp(.88rem, 1.1vw, .98rem);
    line-height: 1.8;
}

/* ========================
   CONTACT
   ======================== */
#contact {
    padding: clamp(60px, 8vw, 110px) 0;
    background: var(--surface);
}

.contact-box {
    max-width: 760px;
    margin: 0 auto;
    background: var(--elevated);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: clamp(30px, 5vw, 44px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .contact-info-row {
        grid-template-columns: 1fr;
    }
}

.cdetail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #171E2E;
    /* Darker background from mockup */
    border: none;
    border-radius: 8px;
    transition: background .2s;
}

.cdetail:hover {
    background: #1C2436;
}

.cdetail-ico {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-l);
    flex-shrink: 0;
}

.cdetail-lbl {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--t3);
}

.cdetail-val {
    font-size: .9rem;
    color: var(--t2);
    font-weight: 600;
}

.cdetail-val a {
    color: var(--accent-l);
}

.cdetail-val a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fl {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.fi {
    width: 100%;
    background: #171E2E;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--t1);
    padding: 14px 16px;
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.fi::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.fi:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .form-row-col {
        grid-template-columns: 1fr;
    }
}

#form-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .87rem;
    font-weight: 600;
    display: none;
}

#form-msg.ok {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: var(--green-l);
    display: block;
}

#form-msg.err {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #f87171;
    display: block;
}

/* ========================
   FOOTER
   ======================== */
#footer {
    background: var(--elevated);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: .96rem;
    color: var(--t1);
}

.footer-brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: .8rem;
    color: var(--t3);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all .2s;
    font-weight: 500;
}

.footer-links a:hover {
    background: var(--bg);
    color: var(--t2);
}

.footer-copy {
    font-size: .75rem;
    color: var(--t3);
}

/* ========================
   SCROLL REVEAL
   ======================== */
.r {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

.r.d1 {
    transition-delay: .1s
}

.r.d2 {
    transition-delay: .2s
}

.r.d3 {
    transition-delay: .3s
}

.r.vis {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-img-wrap {
        max-width: 600px;
        margin: 0 auto;
    }

    .ss-grid {
        grid-template-columns: 1fr;
    }

    .ss-grid.flip {
        direction: ltr;
    }

    .feat-card.wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        max-width: 300px;
        aspect-ratio: 1/1;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 60px 0 0;
        background: rgba(11, 17, 32, .97);
        backdrop-filter: blur(16px);
        padding: 20px;
        gap: 6px;
        z-index: 190;
    }

    .nav-links.open a {
        font-size: 1rem;
        padding: 11px 14px;
        display: block;
    }

    .nav-burger {
        display: flex;
    }

    .nav-end .btn-g {
        display: none;
    }

    .hero-logo-block img {
        width: 52px;
        height: 52px;
    }

    .hero-h1 {
        font-size: 2.4rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .ss-badge {
        left: 0;
        bottom: -10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}