/* ==========================================================================
   GressTrace (gresstrace.dev) — Multi-Page Enterprise Production Design System
   Full Reset, Clean Hyperlinks, Zero Default Bullets, Sentry Visual Palette
   Top Notice Banner for Development & AWS Activate Application
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --st-bg: #090710;
    --st-bg-alt: #0d0b16;
    --st-surface: #141022;
    --st-surface-hover: #1c172e;
    --st-card: #181428;
    --st-card-hover: #221c38;
    --st-code-bg: #06040a;
    
    --st-purple: #6c5fc7;
    --st-purple-hover: #7c6fd8;
    --st-purple-light: #a881fc;
    --st-purple-glow: rgba(108, 95, 199, 0.35);
    
    --st-green: #22c55e;
    --st-red: #ef4444;
    --st-amber: #f59e0b;
    --st-blue: #38bdf8;
    
    --st-text-white: #ffffff;
    --st-text-body: #e2e8f0;
    --st-text-muted: #94a3b8;
    --st-text-dim: #64748b;
    
    --st-border: rgba(255, 255, 255, 0.08);
    --st-border-active: rgba(108, 95, 199, 0.4);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-sans);
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--st-bg);
}

body {
    background-color: var(--st-bg);
    color: var(--st-text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Reset All Links & Lists (No Blue Hyperlinks, No Default Bullets) */
a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Notice Banner (AWS Activate & Active Development) */
.top-notice-banner {
    background: linear-gradient(90deg, #141022 0%, #1e1936 50%, #141022 100%);
    border-bottom: 1px solid var(--st-border-active);
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--st-text-muted);
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.top-notice-banner strong {
    color: var(--st-purple-light);
}

.top-notice-banner a {
    color: var(--st-text-white);
    text-decoration: underline;
    font-weight: 500;
}

.top-notice-banner a:hover {
    color: var(--st-purple-light);
}

/* Header Navbar (Adjusted top position below notice banner) */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 7, 16, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--st-border);
    height: 72px;
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--st-text-white);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--st-purple);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 12px var(--st-purple-glow);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: var(--st-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--st-text-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--st-purple);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--st-purple-glow);
}

.btn-primary:hover {
    background: var(--st-purple-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--st-surface);
    border-color: var(--st-border);
    color: var(--st-text-white);
}

.btn-secondary:hover {
    background: var(--st-card);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Subpage Page Hero (Adjusted for Top Banner + Fixed Navbar) */
.page-hero {
    padding-top: 175px;
    padding-bottom: 60px;
    text-align: center;
    border-bottom: 1px solid var(--st-border);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--st-text-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--st-text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* Main Hero Section (Adjusted for Top Banner + Fixed Navbar) */
.hero {
    padding-top: 175px;
    padding-bottom: 70px;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--st-surface);
    border: 1px solid var(--st-border-active);
    font-size: 0.85rem;
    color: var(--st-purple-light);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--st-text-white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--st-text-muted);
    max-width: 800px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Hero Visual Card */
.hero-visual {
    background: var(--st-surface);
    border: 1px solid var(--st-border-active);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--st-purple-glow);
    text-align: left;
}

.hero-visual-bar {
    background: #050308;
    padding: 12px 20px;
    border-bottom: 1px solid var(--st-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--st-text-muted);
}

.hero-visual-dots {
    display: flex;
    gap: 8px;
}

.h-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.h-dot.red { background: #ef4444; }
.h-dot.yellow { background: #f59e0b; }
.h-dot.green { background: #22c55e; }

.hero-visual-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.hero-trace-pane {
    padding: 24px;
    border-right: 1px solid var(--st-border);
}

.hero-details-pane {
    padding: 24px;
    background: var(--st-card);
}

.trace-item {
    background: var(--st-code-bg);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trace-item.spike {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}

/* Brand Wall */
.brand-wall {
    padding: 36px 0;
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
    background: rgba(20, 16, 34, 0.4);
    text-align: center;
}

.brand-wall-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--st-text-dim);
    margin-bottom: 20px;
}

.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--st-text-muted);
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.brand-item:hover {
    color: var(--st-text-white);
}

/* Setup Wizard Section */
.wizard-section {
    padding: 100px 0;
}

.wizard-head {
    text-align: center;
    margin-bottom: 36px;
}

.wizard-head h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--st-text-white);
    margin-bottom: 12px;
}

.wizard-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wizard-btn {
    appearance: none;
    -webkit-appearance: none;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    color: var(--st-text-muted);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.wizard-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--st-text-white);
    background: var(--st-surface-hover);
}

.wizard-btn.active {
    background: var(--st-purple);
    border-color: var(--st-purple);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--st-purple-glow);
}

.code-container {
    max-width: 860px;
    margin: 0 auto;
    background: var(--st-code-bg);
    border: 1px solid var(--st-border-active);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.code-header {
    background: #050308;
    padding: 12px 20px;
    border-bottom: 1px solid var(--st-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--st-text-dim);
}

.code-content {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--st-text-body);
}

.c-kw { color: #c084fc; font-weight: 600; }
.c-str { color: #4ade80; }
.c-cm { color: #64748b; font-style: italic; }
.c-num { color: #38bdf8; }
.c-fn { color: #60a5fa; }

/* Sections */
.section {
    padding: 100px 0;
    border-top: 1px solid var(--st-border);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--st-text-white);
    margin-bottom: 16px;
}

.section-head p {
    font-size: 1.15rem;
    color: var(--st-text-muted);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--st-card);
    border: 1px solid var(--st-border);
    border-radius: 14px;
    padding: 40px;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--st-border-active);
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    background: var(--st-purple-glow);
    color: var(--st-purple-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(108, 95, 199, 0.3);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--st-text-white);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--st-text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

/* Documentation Portal Specific Styling */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    padding-top: 155px;
    padding-bottom: 100px;
}

.docs-sidebar {
    position: sticky;
    top: 130px;
    align-self: start;
}

.docs-menu-group {
    margin-bottom: 32px;
}

.docs-menu-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-text-dim);
    margin-bottom: 14px;
}

.docs-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-menu-links a {
    color: var(--st-text-muted);
    font-size: 0.95rem;
    transition: color 0.15s;
    display: block;
}

.docs-menu-links a:hover, .docs-menu-links a.active {
    color: var(--st-purple-light);
    font-weight: 600;
}

.docs-content h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--st-text-white);
    margin-bottom: 16px;
}

.docs-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--st-text-white);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--st-border);
}

.docs-content p {
    color: var(--st-text-muted);
    font-size: 1.02rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    border-color: var(--st-purple);
    background: var(--st-card);
    box-shadow: 0 0 50px var(--st-purple-glow);
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--st-text-white);
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--st-text-white);
    margin: 16px 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.98rem;
    color: var(--st-text-muted);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    padding: 40px;
    display: block;
    color: var(--st-text-white);
    transition: all 0.2s ease;
}

.blog-card:hover {
    border-color: var(--st-purple);
    background: var(--st-card-hover);
    transform: translateY(-2px);
}

.blog-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--st-purple-light);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--st-text-white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card p {
    color: var(--st-text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Connected Box */
.connected-box {
    background: var(--st-surface);
    border: 1px solid var(--st-border-active);
    border-radius: 16px;
    padding: 56px;
    text-align: center;
    box-shadow: 0 0 50px rgba(108, 95, 199, 0.15);
}

.connected-box h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--st-text-white);
    margin-bottom: 16px;
}

.connected-box p {
    font-size: 1.2rem;
    color: var(--st-text-muted);
    max-width: 780px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Interactive Calculator */
.calc-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border-active);
    border-radius: 16px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.calc-group {
    margin-bottom: 24px;
}

.calc-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--st-text-white);
}

.calc-val {
    font-family: var(--font-mono);
    color: var(--st-purple-light);
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: var(--st-code-bg);
    accent-color: var(--st-purple);
    border-radius: 3px;
}

.calc-result-box {
    background: var(--st-code-bg);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.calc-amount {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--st-green);
    margin-top: 8px;
}

/* Waitlist Card */
.waitlist-section {
    padding: 100px 0;
    border-top: 1px solid var(--st-border);
}

.waitlist-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--st-surface);
    border: 1px solid var(--st-border-active);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 0 40px var(--st-purple-glow);
}

.waitlist-card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--st-text-white);
    text-align: center;
    margin-bottom: 8px;
}

.waitlist-card p {
    color: var(--st-text-muted);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 32px;
}

.form-field {
    margin-bottom: 20px;
    text-align: left;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--st-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-field input, .form-field textarea {
    width: 100%;
    background: var(--st-code-bg);
    border: 1px solid var(--st-border);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--st-text-white);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color 0.15s ease;
}

.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--st-purple);
}

/* Disclaimer & Footer */
.dev-disclaimer {
    text-align: center;
    padding: 24px 0;
    font-size: 0.88rem;
    color: var(--st-text-dim);
    border-top: 1px solid var(--st-border);
}

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--st-border);
    color: var(--st-text-dim);
    font-size: 0.9rem;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--st-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.footer-nav a:hover {
    color: var(--st-text-white);
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-visual-body { grid-template-columns: 1fr; }
    .features-grid, .calc-card, .blog-grid, .pricing-grid { grid-template-columns: 1fr; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { display: none; }
    .nav-menu { display: none; }
    .top-notice-banner { font-size: 0.75rem; padding: 6px 12px; }
}
