/* ===================================================================
   OneScAI — ONESCAI SOLUTIONS PRIVATE LIMITED
   Enterprise AI/ML design system  •  dark, premium, mobile-first
   =================================================================== */

:root {
    /* Brand gradient (matches logo: pink -> purple -> blue -> cyan) */
    --g1: #ff5fa2;
    --g2: #a855f7;
    --g3: #5b8cff;
    --g4: #22d3ee;
    --gradient: linear-gradient(120deg, var(--g1), var(--g2), var(--g3), var(--g4));
    --gradient-soft: linear-gradient(120deg, rgba(255, 95, 162, .14), rgba(168, 85, 247, .14), rgba(34, 211, 238, .14));

    --primary: #8b8cff;
    --accent: #22d3ee;

    /* Surfaces */
    --bg: #07070b;
    --bg-1: #0b0b12;
    --bg-2: #101019;
    --card: rgba(255, 255, 255, .035);
    --card-hover: rgba(255, 255, 255, .06);
    --glass: rgba(255, 255, 255, .04);

    /* Text */
    --text: #f4f4f7;
    --text-dim: #a7a7b4;
    --text-mute: #6f6f80;

    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);

    --radius: 20px;
    --radius-lg: 28px;
    --radius-sm: 12px;

    --maxw: 1240px;
    --pad: 40px;

    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --t: .45s var(--ease);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60vw 60vw at 85% -10%, rgba(168, 85, 247, .16), transparent 60%),
        radial-gradient(55vw 55vw at -10% 10%, rgba(34, 211, 238, .12), transparent 60%),
        radial-gradient(50vw 50vw at 50% 120%, rgba(255, 95, 162, .10), transparent 60%);
    pointer-events: none;
    will-change: transform;
    animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1.05); } 100% { transform: translate3d(-2%, 1.5%, 0) scale(1.16); } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.gradient-text {
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
    padding: 7px 14px; border-radius: 100px;
    background: var(--glass); border: 1px solid var(--border);
    margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(34, 211, 238, 0); } }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }
.lead { color: var(--text-dim); font-size: 1.15rem; }

/* ---------- Header ---------- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(7, 7, 11, .55);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: var(--t);
}
header.scrolled { background: rgba(7, 7, 11, .82); border-bottom-color: var(--border); }
header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand img { height: 38px; width: auto; }
nav#main-nav ul { display: flex; align-items: center; gap: 34px; }
nav#main-nav a {
    color: var(--text-dim); font-weight: 500; font-size: .96rem; position: relative; transition: color .25s;
}
nav#main-nav a:hover, nav#main-nav a.active { color: var(--text); }
nav#main-nav a.active::after {
    content: ''; position: absolute; left: 0; bottom: -8px; width: 100%; height: 2px;
    background: var(--gradient); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 16px; }

.menu-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 28px; height: 19px; background: none; border: none; cursor: pointer; z-index: 1100;
}
.menu-toggle span { width: 100%; height: 2.5px; background: var(--text); border-radius: 4px; transition: var(--t); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: .98rem;
    cursor: pointer; border: 1px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(120deg, #d6336c, #9333ea 52%, #5b54e6); background-size: 160% auto; color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .28); box-shadow: 0 10px 30px rgba(168, 85, 247, .4); }
.btn-primary:hover { transform: translateY(-3px); background-position: right center; box-shadow: 0 16px 44px rgba(168, 85, 247, .55); }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn-primary:hover::after { animation: sheen .9s ease; }
@keyframes sheen { to { left: 150%; } }
.btn-ghost { background: var(--glass); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--card-hover); }
.btn-sm { padding: 11px 20px; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-block: 1px solid var(--border); }
.section.tight { padding: 80px 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 150px 0 70px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 20px; }
.page-hero p { color: var(--text-dim); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }

/* ---------- Home hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.hero-inner { max-width: 760px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.orbit { position: relative; width: min(470px, 94%); aspect-ratio: 1 / 1; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .spin { transform-box: view-box; transform-origin: 200px 200px; animation: spin 30s linear infinite; }
.orbit .spin.rev { animation-duration: 46s; animation-direction: reverse; }
.orbit .spin.fast { animation-duration: 20s; }
.orbit .core-glow { transform-box: view-box; transform-origin: 200px 200px; animation: breathe 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: 1; } }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); margin-bottom: 24px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 660px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 56px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-trust .num { font-size: 1.9rem; font-weight: 800; }
.hero-trust .lbl { color: var(--text-mute); font-size: .85rem; letter-spacing: .03em; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px; transition: var(--t);
    position: relative; overflow: hidden; height: 100%;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); box-shadow: var(--shadow); }
.card .ico {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    margin-bottom: 22px; color: var(--accent);
    background: var(--gradient-soft); border: 1px solid var(--border);
}
.ico svg { width: 26px; height: 26px; display: block; }
.pillar .ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 1rem; }
.card .tag {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent); background: var(--glass); border: 1px solid var(--border);
    padding: 5px 11px; border-radius: 100px; margin-bottom: 16px;
}
.card-link { margin-top: 18px; display: inline-flex; gap: 7px; color: var(--text); font-weight: 600; font-size: .92rem; }
.card-link span { transition: transform .25s; }
.card:hover .card-link span { transform: translateX(5px); }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse > :first-child { order: 2; }

/* Detailed solution / product blocks */
.detail {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 48px; margin-bottom: 30px; position: relative; overflow: hidden;
}
.detail::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gradient);
}
.detail .detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.detail .detail-head h3 { font-size: 1.7rem; }
.pill { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-dim); background: var(--glass); }
.pill.live { color: #34d399; border-color: rgba(52, 211, 153, .35); }
.pill.dev { color: var(--g1); border-color: rgba(255, 95, 162, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: .85rem; padding: 8px 14px; border-radius: 100px; background: var(--glass); border: 1px solid var(--border); color: var(--text-dim); }
.feature-list { margin-top: 22px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; color: var(--text-dim); }
.feature-list li::before { content: '▸'; color: var(--accent); font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 34px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.stat .n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; }
.stat .l { color: var(--text-dim); margin-top: 10px; font-size: .95rem; }

/* ---------- Pillars ---------- */
.pillar { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: var(--t); }
.pillar:hover { border-color: var(--border-strong); background: var(--card-hover); }
.pillar .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--gradient-soft); border: 1px solid var(--border); }
.pillar h4 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Founders ---------- */
.founder { text-align: left; }
.founder .avatar {
    width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center;
    font-size: 1.6rem; font-weight: 800; color: #08080c; background: var(--gradient); margin-bottom: 20px;
}
.founder h3 { font-size: 1.35rem; }
.founder .role { color: var(--accent); font-weight: 600; font-size: .92rem; margin: 4px 0 14px; }
.founder p { color: var(--text-dim); }
.founder .email { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.founder .email:hover { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
    text-align: center; border-radius: var(--radius-lg); padding: 70px 40px;
    background: var(--gradient-soft); border: 1px solid var(--border-strong); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 32px; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.info-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: none; }
.info-item label { display: block; color: var(--accent); text-transform: uppercase; font-size: .74rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 8px; }
.info-item p, .info-item a { font-size: 1.05rem; color: var(--text); }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-form { display: grid; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea {
    background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
    padding: 13px 16px; border-radius: var(--radius-sm); color: var(--text);
    font-family: inherit; font-size: 1rem; width: 100%; transition: var(--t);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a7a7b4' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-group select option { background: var(--bg-2); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 30px; }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; filter: grayscale(.3) invert(.92) hue-rotate(180deg); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--bg-1); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-dim); font-size: .95rem; max-width: 340px; }
.footer-brand .legal-name { display: block; margin-top: 18px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.footer-col h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--text-dim); font-size: .95rem; margin-bottom: 12px; transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: .88rem; }
.footer-bottom .legal { max-width: 760px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .gradient-text, .eyebrow::before, body::before,
    .orbit .spin, .orbit .core-glow, .btn-primary:hover::after { animation: none !important; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
    :root { --pad: 28px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 36px; }
    .feature-row.reverse > :first-child { order: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 18px; }
    .hero-inner { max-width: 760px; }
    .hero-visual { min-height: 300px; order: 2; }
    .orbit { width: min(340px, 74%); }
}

@media (max-width: 680px) {
    :root { --pad: 16px; }                 /* minimal mobile side margins */
    .section { padding: 72px 0; }
    .hero { min-height: auto; padding: 116px 0 64px; }
    .hero-visual { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    nav#main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(82%, 340px); height: 100vh;
        background: rgba(8, 8, 13, .97); backdrop-filter: blur(24px);
        flex-direction: column; justify-content: center;
        transform: translateX(105%); transition: var(--t);
        border-left: 1px solid var(--border); padding: 40px;
    }
    nav#main-nav.active { transform: none; }
    nav#main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
    nav#main-nav a { font-size: 1.3rem; color: var(--text); }
    .nav-cta .btn { display: none; }
    nav#main-nav .btn { display: inline-flex; margin-top: 10px; }
    .menu-toggle { display: flex; }

    .card, .detail { padding: 26px; }
    .detail { border-radius: var(--radius); }
    .cta-band { padding: 48px 22px; }
    .form-card { padding: 26px; }
    .hero-trust { gap: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}
