:root {
    /* Palette Refined: Deep Tech Navy */
    --bg: #0B0F14;
    /* Deep obsidian */
    --surface: #121826;
    /* Rich dark gray/blue */
    --surface2: #1E293B;
    /* Lighter surface for borders/hovers */
    --border: rgba(255, 255, 255, 0.1);

    /* Typography Colors */
    --text: #F3F4F6;
    /* High clarity white */
    --muted: #9CA3AF;
    /* Cool gray for secondary text */
    --accent: #60A5FA;
    /* Vivid Blue - Trust & Tech */

    /* Effects */
    --radius: 12px;
    /* Slightly tighter for technical feel */
    --radius-sm: 8px;
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(96, 165, 250, 0.15);
    --glass: rgba(18, 24, 38, 0.7);

    /* Layout */
    --max: 1120px;

    /* Fonts */
    --font-head: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-logo: 'Playfair Display', serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 15% 0%, rgba(96, 165, 250, 0.08), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05), transparent 40%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), transparent 70%);
}

.brand-text {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: #f8fafc;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px
}

.menu a {
    color: var(--muted);
    font-weight: 520
}

.menu a:hover {
    color: var(--text)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 650;
    transition: transform .08s ease, background .2s ease, border .2s ease;
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    background: rgba(96, 165, 250, .16);
    border-color: rgba(96, 165, 250, .35);
}

.btn-primary:hover {
    background: rgba(96, 165, 250, .22)
}

.btn-secondary {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .09)
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .10);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .06)
}

/* Hero Mesh Gradient */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

.hero {
    padding: 70px 0 40px;
    position: relative;
    overflow: hidden;
}

/* Icons */
.icon-tech {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent);
    stroke-width: 1.5;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.2));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: stretch;
}

.kicker {
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 6px 10px;
    border-radius: 999px;
    width: fit-content;
    background: rgba(255, 255, 255, .04);
}

h1 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -.6px;
}

.accent {
    color: var(--accent)
}

.lead {
    color: rgba(229, 231, 235, .88);
    font-size: 1.06rem;
    max-width: 60ch
}

.cta-row {
    display: flex;
    gap: 12px;
    margin: 18px 0 16px
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
}

.trust span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
}

.hero-card {
    background: linear-gradient(180deg, rgba(17, 24, 39, .8), rgba(15, 23, 42, .85));
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat {
    padding: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}

.stat-num {
    font-weight: 800;
    letter-spacing: .2px
}

.stat-label {
    color: var(--muted);
    font-weight: 520
}

.note {
    color: var(--muted);
    font-size: .9rem
}

.section {
    padding: 62px 0
}

.section-muted {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02), transparent);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 2.2vw, 32px);
    letter-spacing: -.4px;
}

.section-head p {
    margin: 0 0 22px;
    color: var(--muted);
    max-width: 75ch
}

.grid {
    display: grid;
    gap: 16px
}

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.card {
    background: rgba(17, 24, 39, .62);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px
}

.card p {
    margin: 0 0 10px;
    color: rgba(229, 231, 235, .88)
}

.card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted)
}

.card li {
    margin: 6px 0
}

.steps {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.step {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 18px;
}

.badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, .16);
    border: 1px solid rgba(96, 165, 250, .35);
    color: var(--text);
    font-weight: 800;
    margin-bottom: 10px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--muted);
    font-weight: 650;
    font-size: .92rem;
}

.callout {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(96, 165, 250, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(96, 165, 250, .22);
}

.callout h3 {
    margin: 0 0 6px
}

.callout p {
    margin: 0;
    color: rgba(229, 231, 235, .88)
}

.faq details {
    background: rgba(17, 24, 39, .58);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 10px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 750
}

.faq p {
    color: var(--muted);
    margin: 10px 0 0
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.contact-meta {
    margin-top: 12px;
    display: grid;
    gap: 6px
}

.muted {
    color: var(--muted)
}

.small {
    font-size: .9rem
}

.form {
    background: rgba(17, 24, 39, .62);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 18px;
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 650
}

input,
textarea {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    padding: 12px 12px;
    color: var(--text);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(96, 165, 250, .45);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .14);
}

.footer {
    padding: 26px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .menu {
        display: none
    }
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- AWS Carousel --- */
.carousel-section {
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.carousel-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.carousel-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.carousel-text {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Toggle Button Style Overrides */
#lang-toggle {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}


/* --- New Sections CSS --- */

/* Problem Grid */
.problem-card {
    background: rgba(239, 68, 68, 0.15);
    /* Stronger Red (Tailwind red-500) */
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 20px;
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.problem-card:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.5);
}

.problem-card h3 {
    color: #F87171;
    /* Soft Red */
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.problem-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Comparison Section */
.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.diff-col {
    padding: 30px;
    border-radius: var(--radius);
}

.diff-bad {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.diff-good {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    position: relative;
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.05);
}

.diff-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.diff-list li {
    margin-bottom: 12px;
    color: var(--muted);
    display: flex;
    gap: 10px;
}

/* Packages */
.package-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.package-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.package-card.highlight {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.05), rgba(17, 24, 39, 0.5));
}

.pkg-name {
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.pkg-desc {
    color: var(--muted);
    min-height: 50px;
    margin-bottom: 20px;
}

.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.pkg-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.pkg-features li::before {
    content: "✓";
    color: var(--accent);
    margin-right: 8px;
}

/* --- Contact Card Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.contact-info .subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 400px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text);
    font-size: 1.05rem;
}

.method-item a {
    color: inherit;
    transition: color 0.2s;
}

.method-item a:hover {
    color: var(--accent);
}

.method-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Card */
.contact-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    transition: all 0.2s;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.form-group small {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.form-group.error small {
    display: block;
}

.char-count {
    font-size: 0.75rem;
    text-align: right;
    margin-top: 5px;
    color: var(--muted);
}

.char-count.valid {
    color: #10b981;
}

.char-count.invalid {
    color: var(--muted);
}

/* Loader State */
.loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: absolute;
    inset: 0;
    text-align: center;
    padding: 40px;
    background: var(--surface);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
    padding: 20px 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.msg-area {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    font-size: 0.85rem;
    margin: 20px 0;
    resize: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-card {
        padding: 25px;
    }
}

/* Use Cases */
.case-card {
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.case-card h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .diff-grid {
        grid-template-columns: 1fr;
    }
}