/* Atlas DMS — admsportal.app marketing site
   Brand: Bebas Neue headlines, Inter body, gradient #47BBFD -> #0893ED
   Source of truth lives in deploy at Marketing/ ; nginx serves it directly. */

:root {
    --atlas-light:    #47BBFD;
    --atlas-deep:     #0893ED;
    --atlas-gradient: linear-gradient(135deg, #47BBFD 0%, #0893ED 100%);
    --ink:            #0B1220;     /* near-black with a hint of navy */
    --ink-2:          #131C2C;
    --ink-3:          #1B2638;
    --paper:          #F7FAFC;
    --paper-2:        #FFFFFF;
    --line:           rgba(255,255,255,0.10);
    --line-dark:      rgba(11,18,32,0.10);
    --text-on-dark:   #E6EDF7;
    --text-on-dark-2: #9AA7BC;
    --text-on-light:  #1A2433;
    --text-muted:     #5A6781;
    --max:            1200px;
    --pad:            clamp(1.25rem, 4vw, 3rem);
    --radius:         12px;
    --shadow-1:       0 8px 24px rgba(8, 16, 32, 0.10);
    --shadow-2:       0 24px 60px rgba(8, 16, 32, 0.20);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    color: var(--text-on-light);
    background: var(--paper-2);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--atlas-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
    font-family: 'Bebas Neue', Impact, 'Helvetica Neue Condensed', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p  { margin: 0 0 1em; }

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

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--dark      { background: var(--ink);   color: var(--text-on-dark); }
.section--ink-2     { background: var(--ink-2); color: var(--text-on-dark); }
.section--paper     { background: var(--paper); color: var(--text-on-light); }

.eyebrow {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    color: var(--atlas-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section--paper .eyebrow { color: var(--atlas-deep); }

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    max-width: 60ch;
}

.section--dark  .lead { color: var(--text-on-dark-2); }
.section--ink-2 .lead { color: var(--text-on-dark-2); }

.gradient-text {
    background: var(--atlas-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    padding: 0.95em 1.6em;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
    background: var(--atlas-gradient);
    color: white;
    box-shadow: 0 6px 16px rgba(8, 147, 237, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 24px rgba(8, 147, 237, 0.45); }
.btn--ghost {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.section--paper .btn--ghost {
    color: var(--text-on-light);
    border-color: var(--line-dark);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}
.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-on-dark);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.brand__symbol {
    width: 34px; height: 34px;
    display: inline-block;
    background: url("../img/atlas-symbol.png") center/contain no-repeat;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a { color: var(--text-on-dark); font-size: 0.95rem; }
.nav a:hover { color: var(--atlas-light); text-decoration: none; }
@media (max-width: 720px) {
    .nav a:not(.btn) { display: none; }
}

/* Hero */
.hero {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(8, 147, 237, 0.25), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(71, 187, 253, 0.15), transparent 60%),
        var(--ink);
    color: var(--text-on-dark);
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 {
    margin-bottom: 1.25rem;
}
.hero__sub {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-on-dark-2);
    max-width: 56ch;
    margin-bottom: 2rem;
}
.hero__ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero__symbol {
    width: min(420px, 80%);
    filter: drop-shadow(0 30px 60px rgba(8, 147, 237, 0.35));
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Generic 2-col layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Feature cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.card {
    background: var(--paper-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--atlas-gradient);
}
.card h3 { color: var(--text-on-light); margin-bottom: 0.5rem; }
.card p  { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.card__icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(71,187,253,0.12), rgba(8,147,237,0.12));
    color: var(--atlas-deep);
    margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Cards on dark sections */
.section--dark .card,
.section--ink-2 .card {
    background: var(--ink-3);
    border-color: var(--line);
}
.section--dark .card h3,
.section--ink-2 .card h3 { color: var(--text-on-dark); }
.section--dark .card p,
.section--ink-2 .card p { color: var(--text-on-dark-2); }
.section--dark .card__icon,
.section--ink-2 .card__icon {
    background: linear-gradient(135deg, rgba(71,187,253,0.18), rgba(8,147,237,0.18));
    color: var(--atlas-light);
}

/* Product suite — slightly different layout: badge support */
.suite { margin-top: 2.5rem; }
.suite-card { position: relative; }
.badge {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    padding: 0.25em 0.7em;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}
.badge--live   { background: rgba(34, 197, 94, 0.18); color: #22C55E; }
.badge--soon   { background: rgba(255, 255, 255, 0.10); color: var(--text-on-dark-2); }
.section--paper .badge--soon { background: rgba(11,18,32,0.06); color: var(--text-muted); }

/* Stats / social proof */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.stat {
    text-align: left;
    border-left: 3px solid var(--atlas-light);
    padding: 0.5rem 0 0.5rem 1.25rem;
}
.stat__num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    line-height: 1;
    color: var(--text-on-dark);
}
.stat__label { color: var(--text-on-dark-2); font-size: 0.95rem; margin: 0; }

/* Final CTA */
.cta-final {
    text-align: center;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(71,187,253,0.18), transparent 70%),
        var(--ink);
    color: var(--text-on-dark);
}
.cta-final h2 { margin-bottom: 1.25rem; }
.cta-final .btn { font-size: 1.2rem; padding: 1.05em 2em; }

/* Browser-frame mock for portal screenshots */
.mock-browser {
    background: #0F1828;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.mock-browser__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: #0B1220;
    border-bottom: 1px solid var(--line);
}
.mock-browser__dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
}
.mock-browser__url {
    margin-left: 0.5rem;
    flex: 1;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-family: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--text-on-dark-2);
}
.mock-browser__body {
    padding: 1.25rem;
    background: linear-gradient(180deg, #0F1828 0%, #131C2C 100%);
    min-height: 320px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
}
.mock-sidebar {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.mock-sidebar__item {
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}
.mock-sidebar__item--active {
    background: linear-gradient(90deg, rgba(8,147,237,0.25), rgba(71,187,253,0.10));
    border-left: 2px solid var(--atlas-light);
}
.mock-content { display: flex; flex-direction: column; gap: 0.75rem; }
.mock-content__row {
    height: 22px;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
}
.mock-content__row--accent {
    background: linear-gradient(90deg, rgba(71,187,253,0.30), rgba(255,255,255,0.05));
}
.mock-content__cards {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem;
}
.mock-content__card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 100px;
}

/* Phone-frame mock for mobile */
.mock-phone {
    width: 260px;
    aspect-ratio: 9 / 19;
    margin: 0 auto;
    background: #0B1220;
    border: 8px solid #1A2433;
    border-radius: 36px;
    box-shadow: var(--shadow-2);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    position: relative;
}
.mock-phone::before {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 6px;
    background: #000;
    border-radius: 999px;
}
.mock-phone__header {
    height: 28px; margin-top: 4px;
    background: var(--atlas-gradient);
    border-radius: 6px;
}
.mock-phone__row {
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}
.mock-phone__row--lg { height: 96px; background: linear-gradient(180deg, rgba(71,187,253,0.18), rgba(255,255,255,0.04)); }

/* Demo modal */
.modal {
    position: fixed; inset: 0;
    background: rgba(11,18,32,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
}
.modal[aria-hidden="false"] { display: flex; }
.modal__panel {
    background: white;
    color: var(--text-on-light);
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal__close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}
.modal__close:hover { color: var(--text-on-light); }
.modal h2 { margin-bottom: 0.25rem; }
.modal p  { color: var(--text-muted); margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.field input, .field textarea {
    font: inherit;
    color: var(--text-on-light);
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    background: var(--paper);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--atlas-deep);
    box-shadow: 0 0 0 3px rgba(8,147,237,0.18);
}
.field textarea { resize: vertical; min-height: 96px; }

.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status--ok    { color: #15803D; }
.form-status--err   { color: #B91C1C; }

/* Footer */
.site-footer {
    background: #07101F;
    color: var(--text-on-dark-2);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--line);
}
.site-footer__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 800px) {
    .site-footer__row { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--text-on-dark-2); font-size: 0.95rem; }
.site-footer a:hover { color: var(--atlas-light); text-decoration: none; }
.site-footer__legal {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-on-dark-2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Legal pages */
.legal-page { padding: 4rem 0; }
.legal-page h1 { color: var(--text-on-light); margin-bottom: 0.25rem; }
.legal-page p.updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-page h2 {
    color: var(--text-on-light);
    margin-top: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0;
}
.legal-page p { color: var(--text-on-light); }
.legal-page__nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line-dark);
    padding: 1rem 0;
}
.legal-page__nav a { color: var(--atlas-deep); font-size: 0.9rem; }
