/* ------------------------------
   FONTS
--------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ------------------------------
   ROOT VARIABLES
--------------------------------*/
:root {
    --color-primary: #0f3656;
    --color-secondary: #1a637a;
    --color-accent: #f2a23a;
    --color-bg: #f6f1ea;
    --color-text: #1a1a1a;
    --color-muted: #51606d;
    --color-white: #ffffff;
    --color-surface: #ffffff;
    --color-surface-alt: #eff4f6;
    --color-ink-soft: #243647;

    --max-width: 1080px;
}

/* ------------------------------
   GLOBAL
--------------------------------*/
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    background: radial-gradient(circle at top, #fff7ea, var(--color-bg));
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-secondary);
}

/* ------------------------------
   HEADER
--------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid #e5e8ef;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.shrink {
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header.hide {
    transform: translateY(-100%);
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.site-header.shrink .site-header-inner {
    transform: scale(0.95);
}

/* Logo intro animation */
.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0;
    animation: logoIntro 0.8s ease-out forwards;
}

@keyframes logoIntro {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo-mark {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.site-header.shrink .logo-mark {
    transform: scale(0.85);
}

/* ------------------------------
   NAVIGATION
--------------------------------*/
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.25s ease-out;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ------------------------------
   MOBILE MENU
--------------------------------*/
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 700px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }
}

/* ------------------------------
   HERO
--------------------------------*/
.hero {
    position: relative;
    padding: 6.5rem 1.5rem 5rem;
    text-align: left;
    background: linear-gradient(135deg, #0f3656, #1a637a);
    color: var(--color-white);
    opacity: 0;
    animation: heroFade 1.2s ease-out forwards;
    overflow: hidden;
}

@keyframes heroFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(242, 162, 58, 0.2), transparent 45%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    margin: 0 0 1rem;
}

.hero .lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.2rem;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.9rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.6rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    padding: 1.6rem;
    width: min(360px, 90%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.mockup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.mockup-top span {
    display: inline-flex;
    gap: 0.3rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.mockup-body {
    display: grid;
    gap: 0.7rem;
}

.mockup-panel {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    display: grid;
    gap: 0.5rem;
}

.mockup-line {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.mockup-line.short {
    width: 60%;
}

.mockup-line.long {
    width: 90%;
}

.mockup-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------
   SECTIONS
--------------------------------*/
section {
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-block {
    padding: 4.5rem 0;
    background: var(--color-surface);
}

.section-block.alt {
    background: var(--color-surface-alt);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 2.4rem;
    color: var(--color-muted);
}

.section-intro strong {
    color: var(--color-primary);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 54, 86, 0.08);
    color: var(--color-primary);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid rgba(15, 54, 86, 0.12);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(242, 162, 58, 0.18);
    display: grid;
    place-items: center;
    margin-bottom: 0.9rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
}

.feature-card h3,
.step-card h3,
.persona-card h3 {
    margin-top: 0;
}

.muted {
    color: var(--color-muted);
}

.step-number {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-secondary);
}

.cta-band {
    background: linear-gradient(135deg, rgba(15, 54, 86, 0.95), rgba(26, 99, 122, 0.95));
    color: var(--color-white);
    border-radius: 24px;
    padding: 2.6rem;
    display: grid;
    gap: 1.2rem;
    align-items: center;
}

.cta-band h2 {
    color: var(--color-white);
    margin: 0;
}

.cta-band .muted {
    color: rgba(255, 255, 255, 0.8);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #f7b458;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-secondary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-secondary);
}

.dashboard-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.dashboard-visual {
    background: var(--color-surface);
    border-radius: 22px;
    padding: 1.6rem;
    border: 1px solid rgba(15, 54, 86, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-ink-soft);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-card {
    background: var(--color-surface-alt);
    border-radius: 16px;
    padding: 0.9rem;
}

.dashboard-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 54, 86, 0.2);
    margin-bottom: 0.7rem;
}

.dashboard-bar.accent {
    background: rgba(242, 162, 58, 0.65);
}

.dashboard-line {
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 54, 86, 0.18);
    margin-bottom: 0.4rem;
}

.dashboard-line.short {
    width: 70%;
}

.dashboard-line.tiny {
    width: 45%;
}

/* ------------------------------
   RELEASE NOTES
--------------------------------*/
.release-notes {
    background: var(--color-white);
    border: 1px solid #e5e8ef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.release-download {
    background: var(--color-white);
    border: 1px solid #e5e8ef;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.release-download-title {
    margin: 0 0 0.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
}

.release-download-meta {
    margin: 0 0 0.9rem;
    color: #4a4a4a;
}

.release-download-link {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.release-download-link:hover {
    background: var(--color-secondary);
}

.release-notes h1,
.release-notes h2,
.release-notes h3 {
    margin-top: 1.2rem;
    color: var(--color-primary);
}

.release-notes h1:first-child,
.release-notes h2:first-child,
.release-notes h3:first-child {
    margin-top: 0;
}

.release-notes ul {
    padding-left: 1.2rem;
}

.release-notes code {
    background: #f2f4f8;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

.release-notes pre {
    background: #f2f4f8;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* ------------------------------
   FOOTER
--------------------------------*/
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 0.8rem;
}

.footer-logo span {
    background: var(--color-accent);
    color: #1a1a1a;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-meta {
    color: rgba(255, 255, 255, 0.75);
}

.footer-meta strong {
    color: var(--color-white);
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
}

.lang-btn.is-active {
  border-color: rgba(0,0,0,0.2);
}

#published-info {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .dashboard-showcase {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: 5.5rem 1.5rem 4.5rem;
        text-align: left;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.6rem;
    }
}
