/* ============================================================
   XAXERO MARINE SOFTWARE — "Bridge Console" Design System
   A nautical-industrial theme: deep ocean blues, brass accents,
   monospace readouts, chart-paper textures.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600;700&family=Playfair+Display:wght@700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
    /* Core palette */
    --xax-navy:       #0a1628;
    --xax-navy-mid:   #0f2240;
    --xax-navy-light: #162d50;
    --xax-blue:       #1a6fb5;
    --xax-blue-bright:#2d9cdb;
    --xax-cyan:       #56ccf2;
    
    /* Brass / Gold accents */
    --xax-brass:      #c9a227;
    --xax-brass-light:#e8c84a;
    --xax-brass-dim:  #8a7020;
    
    /* Signal colors */
    --xax-green:      #27c17b;
    --xax-amber:      #e8a838;
    --xax-red:        #e54545;
    
    /* Neutrals */
    --xax-white:      #f0f2f5;
    --xax-gray-100:   #e1e5ec;
    --xax-gray-200:   #c4cad6;
    --xax-gray-300:   #8a93a6;
    --xax-gray-400:   #5a6477;
    --xax-gray-500:   #3a4355;
    
    /* Typography */
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'DM Sans', -apple-system, sans-serif;
    --font-mono:      'JetBrains Mono', 'Consolas', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    
    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.15);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.35);
    --shadow-glow: 0 0 20px rgba(42,156,219,0.15);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--xax-white);
    background: var(--xax-navy);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--xax-cyan); transition: color 0.25s; }
a:hover { color: var(--xax-brass-light); }

h1, h2, h3, h4 { line-height: 1.15; margin-bottom: var(--space-md); }
h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: var(--space-md); color: var(--xax-gray-200); }

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Header / Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}
.site-logo:hover img { opacity: 0.8; }

.site-nav { display: flex; align-items: center; gap: 0; }

.site-nav a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xax-gray-300);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    position: relative;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--xax-white);
    background: rgba(255,255,255,0.06);
}
.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--xax-brass);
    border-radius: 1px;
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--xax-white);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--xax-navy-mid);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-md);
    z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--xax-gray-200);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--xax-brass-light);
}

@media (max-width: 768px) {
    .site-nav { display: none; }
    .mobile-toggle { display: block; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--xax-blue), var(--xax-blue-bright));
    color: var(--xax-white);
    box-shadow: 0 2px 12px rgba(26,111,181,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26,111,181,0.45);
    color: var(--xax-white);
}

.btn-brass {
    background: linear-gradient(135deg, var(--xax-brass), var(--xax-brass-light));
    color: var(--xax-navy);
    box-shadow: 0 2px 12px rgba(201,162,39,0.3);
}
.btn-brass:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,162,39,0.45);
    color: var(--xax-navy);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--xax-gray-200);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: var(--xax-white);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-block { width: 100%; justify-content: center; text-align: center; }

/* --- Hero Sections --- */
.hero {
    position: relative;
    padding: var(--space-2xl) 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(26,111,181,0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    color: var(--xax-white);
    margin-bottom: var(--space-md);
}

.hero h1 .accent { color: var(--xax-brass-light); }

.hero .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--xax-gray-200);
    max-width: 650px;
    margin: 0 auto var(--space-lg);
    font-weight: 400;
}

/* Horizontal rule accent */
.divider {
    width: 60px;
    height: 2px;
    background: var(--xax-brass);
    margin: var(--space-lg) auto;
    border: none;
}

/* --- Cards / Panels --- */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.35s;
}
.card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-brass {
    border-color: rgba(201,162,39,0.2);
}
.card-brass:hover {
    border-color: rgba(201,162,39,0.4);
    box-shadow: 0 4px 24px rgba(201,162,39,0.1);
}

/* Glass card for widgets */
.widget-card {
    background: rgba(15,34,64,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* --- Widget Internals --- */
.widget-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--xax-brass);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-row {
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.widget-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.widget-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--xax-gray-300);
    margin-bottom: 2px;
}

.widget-value {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--xax-white);
    display: block;
}

.widget-sub {
    font-size: 0.65rem;
    color: var(--xax-gray-400);
}

/* Status colors */
.status-optimal { color: var(--xax-green) !important; }
.status-degraded { color: var(--xax-amber) !important; }
.status-critical { color: var(--xax-red) !important; }

/* Reliability bar */
.reliability-bar {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.reliability-fill {
    height: 100%;
    background: var(--xax-green);
    width: 0%;
    transition: width 1s ease-out, background-color 0.5s;
    border-radius: 2px;
}

/* --- UTC Clock --- */
.utc-display {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--xax-white);
    text-align: center;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Sections --- */
.section {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 1;
}

.section-light {
    background: linear-gradient(180deg, rgba(22,45,80,0.5) 0%, rgba(15,34,64,0.3) 100%);
}

.section-dark {
    background: rgba(0,0,0,0.15);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    color: var(--xax-white);
}
.section-title h2 .accent { color: var(--xax-brass-light); }

.section-title p {
    max-width: 600px;
    margin: var(--space-sm) auto 0;
    color: var(--xax-gray-300);
}

/* --- Tag / Badge --- */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(201,162,39,0.15);
    color: var(--xax-brass-light);
    border: 1px solid rgba(201,162,39,0.25);
}

.tag-live {
    background: rgba(229,69,69,0.15);
    color: var(--xax-red);
    border-color: rgba(229,69,69,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Featured / Promo Banner --- */
.promo-banner {
    display: block;
    background: linear-gradient(135deg, var(--xax-navy-light), var(--xax-navy-mid));
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    transition: all 0.35s;
    text-decoration: none;
}
.promo-banner:hover {
    border-color: var(--xax-brass);
    box-shadow: 0 0 30px rgba(201,162,39,0.12);
    transform: translateY(-2px);
}
.promo-banner h3 {
    font-family: var(--font-display);
    color: var(--xax-brass-light);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.promo-banner p {
    color: var(--xax-gray-200);
    margin: 0;
    font-size: 0.95rem;
}

/* --- Featured Card Content --- */
.featured-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--xax-white);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.featured-desc {
    font-size: 0.9rem;
    color: var(--xax-gray-200);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* --- Launch Items --- */
.launch-item {
    display: flex;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--xax-blue);
    transition: all 0.25s;
}
.launch-item:hover {
    background: rgba(255,255,255,0.06);
    border-left-color: var(--xax-brass);
}

.launch-date {
    background: rgba(255,255,255,0.04);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 70px;
    color: var(--xax-blue-bright);
}
.launch-date .day { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.launch-date .month { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.launch-info { padding: 0.75rem 1rem; flex-grow: 1; }
.launch-name { font-weight: 600; font-size: 0.95rem; color: var(--xax-white); margin-bottom: 2px; display: block; }
.launch-provider { font-size: 0.8rem; color: var(--xax-gray-300); display: block; margin-bottom: 2px; }
.launch-timer { font-family: var(--font-mono); font-size: 0.75rem; color: var(--xax-green); font-weight: 600; }

/* --- News Items --- */
.news-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.news-item:last-child { border: none; }
.news-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--xax-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    display: block;
}
.news-headline {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--xax-gray-100);
    line-height: 1.4;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}
.news-headline:hover { color: var(--xax-brass-light); }
.news-snippet { font-size: 0.85rem; color: var(--xax-gray-400); margin: 0; }

/* --- Footer --- */
.site-footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--xax-gray-400);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--xax-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.25s;
}
.footer-nav a:hover { color: var(--xax-brass-light); }

/* Contact Iframe */
.contact-frame-container {
    width: 100%;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.contact-frame-container h3 {
    color: var(--xax-brass);
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-frame-container iframe {
    max-width: 100%;
    background: var(--xax-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Tool Section Specifics (Ship-Comms) --- */
.tool-section {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tool-section:last-of-type { border-bottom: none; }

.tool-header { text-align: center; margin-bottom: var(--space-lg); }
.tool-header h2 { color: var(--xax-white); }
.tool-header p { color: var(--xax-gray-300); max-width: 650px; margin: 0 auto; }

.control-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.input-group { margin-bottom: 1.5rem; }
.input-group:last-child { margin-bottom: 0; }
.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--xax-gray-200);
    margin-bottom: 0.5rem;
}
.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--xax-brass);
}
.range-val {
    float: right;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--xax-brass-light);
}

.results-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.big-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--xax-green);
    line-height: 1;
    margin: 1rem 0;
}
.big-number.negative { color: var(--xax-red); }

.result-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--xax-gray-300);
}

.chart-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    margin-top: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chart-bar {
    width: 30%;
    background: var(--xax-blue);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s;
    position: relative;
}
.chart-bar.starlink { background: var(--xax-brass); }
.chart-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--xax-gray-300);
}

/* Canvas wrapper for look angle */
.canvas-wrapper {
    position: relative;
    background: #000;
    border-radius: 50% 50% 0 0;
    overflow: hidden;
    width: 600px;
    max-width: 100%;
    height: 300px;
    border-bottom: 3px solid var(--xax-gray-500);
}
#lookCanvas { width: 100%; height: 100%; }

.angle-readout {
    font-family: var(--font-mono);
    background: rgba(0,0,0,0.4);
    color: var(--xax-brass-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.06);
}

/* Bandwidth apps */
.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.app-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--xax-gray-200);
}
.app-card:hover {
    border-color: var(--xax-blue);
    background: rgba(255,255,255,0.05);
}
.app-card.selected {
    background: rgba(26,111,181,0.12);
    border-color: var(--xax-blue-bright);
    color: var(--xax-white);
}
.app-card[data-app="Guest Wi-Fi Portal"].selected {
    background: rgba(201,162,39,0.1);
    border-color: var(--xax-brass);
}

.speedometer {
    text-align: center;
    background: var(--xax-navy-mid);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--xax-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
}
.speed-val {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--xax-brass-light);
    line-height: 1;
}
.speed-unit {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--xax-gray-400);
}
.recommendation {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--xax-gray-200);
}

/* --- Download Buttons --- */
.download-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    color: var(--xax-gray-200);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
    text-decoration: none;
}
.download-btn:hover {
    background: rgba(26,111,181,0.12);
    border-color: var(--xax-blue);
    color: var(--xax-white);
}
.download-btn .dl-icon {
    font-size: 0.9rem;
    opacity: 0.4;
    transition: opacity 0.25s;
}
.download-btn:hover .dl-icon { opacity: 1; }

/* --- Moon phase display --- */
.moon-phase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}
.moon-icon { font-size: 1.6rem; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .hero { padding: var(--space-xl) 0; }
    .section { padding: var(--space-xl) 0; }
    .header-inner { height: 60px; }
    .site-logo img { height: 28px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; }
    .canvas-wrapper { height: 200px; }
    .grid-2 { grid-template-columns: 1fr; }
}
