/* ==========================================================================
   BreeZ — shared site styles
   Dark, modern, fluid. Mirrors the in-app palette: deep navy + cyan accent.
   ========================================================================== */

:root {
    --bg-0:       #06080d;
    --bg-1:       #0a0e16;
    --bg-2:       #0f1521;
    --surface:    rgba(20, 28, 42, 0.55);
    --surface-2:  rgba(26, 36, 52, 0.78);
    --border:     rgba(120, 148, 180, 0.14);
    --border-hi:  rgba(140, 200, 220, 0.28);
    --text-0:     #e9eef5;
    --text-1:     #b6c1cf;
    --text-2:     #768292;
    --accent:     #5ec9d6;
    --accent-hi:  #82dde9;
    --accent-dim: rgba(94, 201, 214, 0.18);
    --danger:     #e23939;
    --radius-lg:  20px;
    --radius-md:  14px;
    --radius-sm:  10px;
    --shadow:     0 30px 60px -25px rgba(0, 0, 0, 0.8),
                  0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --maxw:       1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-0);
    color: var(--text-0);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(94, 201, 214, 0.08), transparent 60%),
        radial-gradient(900px 700px at -10% 30%, rgba(60, 100, 160, 0.06), transparent 60%),
        var(--bg-0);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .15s ease, opacity .15s ease;
}
a:hover { color: var(--accent-hi); }

img { max-width: 100%; display: block; }

/* ── Streamline canvas (fixed, behind everything) ──────────────────── */
#streamfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* layered above the canvas */
.site-header,
.site-main,
.site-footer { position: relative; z-index: 1; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
    padding: 22px clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(180deg,
        rgba(6, 8, 13, 0.7) 0%,
        rgba(6, 8, 13, 0.0) 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-0);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: 0 0 0 1px var(--border-hi),
                0 8px 20px -10px rgba(94, 201, 214, 0.4);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-name b {
    color: var(--accent);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    color: var(--text-1);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.nav a:hover { color: var(--text-0); background: var(--surface); }
.nav a.active { color: var(--accent); }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.lang-toggle button {
    background: transparent;
    border: 0;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background .15s ease, color .15s ease;
}
.lang-toggle button.active {
    background: var(--accent-dim);
    color: var(--accent-hi);
}

/* mobile nav: collapse labels into icons-only would be heavy; keep but compact */
@media (max-width: 640px) {
    .site-header { padding: 16px 18px; }
    .nav a { padding: 6px 9px; font-size: 13.5px; }
    .lang-toggle { margin-left: 4px; }
    .brand-name { font-size: 17px; }
}

/* ── Main ──────────────────────────────────────────────────────────── */
.site-main {
    flex: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) clamp(20px, 4vw, 40px) 80px;
}

/* ── Hero (home) ───────────────────────────────────────────────────── */
.hero {
    padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 70px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-1);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.9); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }

.hero p.lede {
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--text-1);
    max-width: 520px;
    margin-bottom: 28px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid var(--border-hi);
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #06222a;
    border-color: transparent;
    box-shadow: 0 12px 28px -12px rgba(94, 201, 214, 0.65);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); color: #06222a; }
.btn-ghost { background: transparent; color: var(--text-0); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }

/* iPhone frame wrapping the hero screenshot.
   Outer = titanium bezel; .screen = the actual display.
   The aspect ratio lives on .screen (matched exactly to the screenshot's
   1206×2622) so the image always fits perfectly; the outer .hero-art derives
   its height from screen + padding, keeping the bezel a constant 9px ring
   regardless of viewport. */
.hero-art {
    position: relative;
    max-width: 290px;
    width: 100%;
    margin-left: auto;
    padding: 9px;
    border-radius: 50px;
    background:
        linear-gradient(140deg,
            #3a4150 0%,
            #181d27 22%,
            #0a0d14 55%,
            #1c2230 78%,
            #2c3342 100%);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 80px -20px rgba(94, 201, 214, 0.32);
    transform: translateY(0);
    transition: transform .4s ease;
}

/* hairline highlight along the bezel edge */
.hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.03) 28%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(255, 255, 255, 0.16) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.hero-art:hover { transform: translateY(-4px); }

.hero-art .screen {
    position: relative;
    width: 100%;
    aspect-ratio: 1206 / 2622;  /* exact pixel ratio of the source screenshots */
    border-radius: 42px;
    overflow: hidden;
    background: #000;
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85) inset;
}

.hero-art .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* side hardware buttons — small, cosmetic */
.hero-art .btn-vol,
.hero-art .btn-pwr {
    position: absolute;
    background: linear-gradient(90deg, #2a3140, #1a1f2a);
    border-radius: 2px;
    pointer-events: none;
}
.hero-art .btn-vol {
    left: -2px;
    width: 3px;
}
.hero-art .btn-pwr {
    right: -2px;
    width: 3px;
    top: 28%;
    height: 14%;
}
.hero-art .btn-vol.up   { top: 22%; height: 9%; }
.hero-art .btn-vol.down { top: 33%; height: 9%; }
.hero-art .btn-vol.act  { top: 16%; height: 5%; }

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; text-align: left; }
    .hero-art { margin: 8px 0 0 0; max-width: 240px; }
}

/* ── Feature grid ──────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.section-sub {
    color: var(--text-1);
    margin-bottom: 28px;
    font-size: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
    border-color: var(--border-hi);
    transform: translateY(-2px);
    background: var(--surface-2);
}
.card .icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--accent-dim);
    color: var(--accent);
    margin-bottom: 14px;
}
.card .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.card h3 {
    font-size: 16.5px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.card p {
    color: var(--text-1);
    font-size: 14.5px;
    line-height: 1.55;
}

/* ── Showcase strip ────────────────────────────────────────────────── */
.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}
.shot {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: 0 0 0 1px var(--border), var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}
.shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px var(--border-hi),
                var(--shadow),
                0 0 50px -10px rgba(94, 201, 214, 0.25);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
    .shots { grid-template-columns: 1fr; }
    .shot { max-width: 320px; margin-inline: auto; }
}

/* ── Long-form pages (support / privacy) ───────────────────────────── */
.page-head {
    padding: clamp(20px, 4vw, 40px) 0 12px;
}
.page-head h1 {
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.page-head .meta {
    color: var(--text-2);
    font-size: 13.5px;
    margin-top: 8px;
    letter-spacing: 0.04em;
}

.prose {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 38px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 24px;
}

.prose h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text-0);
    letter-spacing: -0.005em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 6px;
    color: var(--text-0);
}
.prose p, .prose li {
    color: var(--text-1);
    font-size: 15px;
    line-height: 1.7;
}
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 8px 0; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text-0); font-weight: 600; }
.prose hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

/* contact rows */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.contact-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-0);
    transition: border-color .2s ease, transform .2s ease;
}
.contact-tile:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text-0); }
.contact-tile .icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--accent-dim);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-tile .icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-tile .label {
    font-size: 12px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.contact-tile .value {
    font-size: 14.5px;
    color: var(--text-0);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
    padding: 36px clamp(20px, 4vw, 40px) 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-2);
    font-size: 13px;
}
.footer-left .by {
    color: var(--text-1);
}
.footer-left .by:hover { color: var(--accent); }
.studio-mark {
    width: 22px;
    height: 22px;
    opacity: 0.85;
    filter: brightness(0.95);
    transition: opacity .15s ease, transform .3s ease;
}
.footer-left a:hover .studio-mark { opacity: 1; transform: rotate(45deg); }

.footer-right {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-2);
    font-size: 13px;
}
.footer-right a { color: var(--text-2); }
.footer-right a:hover { color: var(--text-0); }

@media (max-width: 540px) {
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Tiny i18n helper: hide the inactive language ──────────────────── */
[data-lang]:not(.lang-active) { display: none !important; }
