:root {
    --bg: #051926;
    --surface: #0f3245;
    --surface-soft: #19435b;
    --accent: #34d399;
    --accent-warm: #fbbf24;
    --text: #eff6ff;
    --muted: #cbd5e1;
    --radius: 22px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Hero card: a single visible panel whose content rotates */
.carousel {
    min-height: 72vh;
    border-radius: 32px;
    padding: clamp(18px, 3vw, 48px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    width: min(920px, 92%);
    max-width: 920px;
    min-height: 64vh;
    border-radius: 28px;
    padding: clamp(24px, 3.6vw, 48px);
    position: relative;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(5, 10, 24, 0.95));
    border: 1px solid rgba(251, 191, 36, 0.12);
    box-shadow: 0 18px 60px rgba(7, 12, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 18%, rgba(52, 211, 153, 0.12), transparent 18%),
        radial-gradient(circle at 82% 16%, rgba(251, 191, 36, 0.12), transparent 14%);
    pointer-events: none;
    z-index: 0;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
}

.carousel-controls {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 12;
}

.arrow {
    pointer-events: auto;
    background: rgba(10, 20, 28, 0.6);
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(52, 211, 153, 0.16), transparent 28%),
        radial-gradient(circle at right, rgba(251, 191, 36, 0.14), transparent 24%),
        linear-gradient(180deg, #041c2d 0%, #082b43 45%, #0b3f58 100%);
    color: var(--text);
    overflow-x: hidden;
}

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

button, input, textarea { font: inherit; }

header, footer {
    width: 100%;
    padding: 24px clamp(18px, 4vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(5, 10, 24, 0.86);
}

header { transition: transform 0.25s ease; }
header.hide { transform: translateY(-120%); }

.brand { display: flex; align-items: center; gap: 14px; }

.logo {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #34d399, #fbbf24); color: #0f172a; font-weight: 700;
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.18);
}

.brand h1 { margin: 0; font-size: 1.1rem; letter-spacing: -0.03em; }

nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
nav a { color: var(--text); opacity: 0.86; transition: opacity 0.22s ease, color 0.22s ease; }
nav a:hover { color: var(--accent); opacity: 1; }

main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 56px; display: grid; gap: 72px; overflow: hidden; }

.hero {
    min-height: 72vh; border-radius: 32px; padding: clamp(32px, 4vw, 64px); position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 18% 20%, rgba(52, 211, 153, 0.15), transparent 18%),
        radial-gradient(circle at 78% 16%, rgba(251, 191, 36, 0.16), transparent 14%),
        radial-gradient(circle at 52% 78%, rgba(56, 189, 248, 0.12), transparent 12%);
    animation: float 18s ease-in-out infinite; pointer-events: none; opacity: 0.9;
}

@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -14px); } }

.hero-content { position: relative; z-index: 1; max-width: 640px; transition: opacity 0.35s ease; }
.hero-content.is-fading { opacity: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(56, 189, 248, 0.12); color: #c7d2fe; padding: 10px 16px; border-radius: 999px; margin-bottom: 20px; font-size: 0.92rem; letter-spacing: 0.03em; }

.hero h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.98; margin: 0 0 18px; letter-spacing: -0.04em; }
.hero p { margin: 0 0 28px; max-width: 34rem; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: none; background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #04294c; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(56, 189, 248, 0.18); }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: none; background: linear-gradient(135deg, #51f838, #24e90e); color: #04294c; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgb(56 248 67 / 18%); }

.section-split { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { border-radius: 28px; padding: 30px; background: rgba(7, 18, 37, 0.86); border: 1px solid rgba(148, 163, 184, 0.1); box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25); }
.panel h3 { margin-top: 0; letter-spacing: -0.03em; }

.accordion { display: grid; gap: 14px; }
.accordion-item { border-radius: 20px; overflow: hidden; background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(148, 163, 184, 0.08); }
.accordion-header { width: 100%; padding: 18px 20px; background: transparent; border: none; color: var(--text); text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.accordion-header span { font-weight: 700; }
.accordion-header svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.accordion-header[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.28s ease, padding 0.28s ease; padding: 0 20px; }
.accordion-panel.open { padding: 18px 20px 22px; }
.accordion-panel p { margin: 0; color: var(--muted); line-height: 1.8; }

.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 0.95rem; color: #cbd5e1; }
.contact-form input, .contact-form textarea { width: 100%; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.15); background: rgba(15, 23, 42, 0.9); color: var(--text); padding: 14px 16px; resize: vertical; }
.contact-form textarea { min-height: 160px; }
.contact-form button { margin-top: 6px; }

.footer-inner { width: min(1100px, calc(100% - 32px)); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-logo-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-logo-nav nav ul { gap: 16px; }
.footer-copy { color: var(--muted); font-size: 0.95rem; opacity: 0.95; }

@media (max-width: 860px) { .section-split { grid-template-columns: 1fr; } header, footer { flex-direction: column; align-items: flex-start; } nav ul { flex-wrap: wrap; gap: 14px; } }
@media (max-width: 640px) { .hero { padding: 28px 22px; } .hero h2 { font-size: 2.45rem; } .footer-inner { flex-direction: column; align-items: flex-start; } }