/* =========================================================
   SpectraView website — dark pro-audio aesthetic, derived
   from the app's DesignTokens (Theme.pageGradient etc.).
   Plain CSS, no preprocessor, no framework.
   ========================================================= */

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Inter, Roboto, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: #e7eaf2;
    background: #0e1320;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%,
                        rgba(60, 90, 180, 0.22), transparent 70%),
        linear-gradient(180deg, #131a2c 0%, #0c1120 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

a {
    color: #ffd24a;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #ffe082;
}

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f5f7fb;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
    color: #c7cdd9;
}

/* ---------- Layout ---------- */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

@media (max-width: 700px) {
    section {
        padding: 56px 0;
    }
}

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(14, 19, 32, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: #f5f7fb;
}

.brand .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: block;
    flex: 0 0 28px;
}

/* Wordmark text sits as a single flex item, so the `Spectra` /
   `View` halves aren't separated by the flex `gap` that's there to
   space the icon from the wordmark. */
.brand .brand-text {
    white-space: nowrap;
}

/* The amber "View" accent — used inside the header brandmark and on
   any product-name occurrence in headlines. Selector is global so
   <span class="brand-accent"> works wherever it appears, not only
   inside the .brand wordmark. */
.brand-accent {
    color: #ffd24a;
}

.site-nav {
    display: flex;
    gap: 26px;
    font-size: 0.95rem;
}

.site-nav a {
    color: #c7cdd9;
}

.site-nav a:hover,
.site-nav a.active {
    color: #f5f7fb;
}

.lang-switch {
    font-size: 0.85rem;
    color: #8a93a6;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 700px) {
    .site-nav {
        gap: 14px;
        font-size: 0.85rem;
    }
    .lang-switch {
        margin-left: 8px;
        padding-left: 8px;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding: 30px 0 20px;
    text-align: center;
}

/* App-icon centred above the page title in the hero. Sized so it
   has a similar presence to a Mac App Store "above the fold" icon
   — large enough to be the focal point, but yields to the headline
   when scrolling. */
.hero .hero-app-icon {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    border-radius: 24px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 700px) {
    .hero .hero-app-icon {
        width: 92px;
        height: 92px;
        margin-bottom: 18px;
    }
}

.hero .tagline {
    color: #ffd24a;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.hero .lede {
    max-width: 60ch;
    margin: 18px auto 36px;
    font-size: 1.15rem;
    color: #b8bfcc;
}

/* ---------- Buttons ---------- */

.btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.97rem;
    transition: transform 0.12s ease, background 0.15s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #ffd24a;
    color: #1a1408;
    border-color: #ffd24a;
}

.btn-primary:hover {
    background: #ffe082;
    color: #1a1408;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #e7eaf2;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
}

/* ---------- Product cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-card:hover {
    border-color: rgba(255, 210, 74, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.product-card .label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffd24a;
    margin-bottom: 8px;
}

.product-card h3 {
    color: #f5f7fb;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95rem;
    color: #b8bfcc;
}

.product-card a.more {
    color: #ffd24a;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Feature list ---------- */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 700px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-list li {
    padding-left: 22px;
    position: relative;
    color: #c7cdd9;
}

.feature-list li::before {
    content: "▸";
    color: #6cd99a;
    position: absolute;
    left: 0;
    font-size: 0.85rem;
    top: 0.2em;
}

/* ---------- Hero stage ---------- */

/* A dramatic stage for the home-page hero device shot. The iPad
   screenshot tilts very slightly in 3D, sits in a coloured spotlight
   and casts a long soft shadow — gives the page a real product-page
   presence instead of a flat thumbnail. */
.hero-stage {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
    padding: 20px 40px 60px;
    perspective: 1600px;
}

/* Radial glow that bleeds outside the device — the "spotlight". */
.hero-stage::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(ellipse 60% 55% at 50% 45%,
                        rgba(255, 210, 74, 0.42) 0%,
                        rgba(108, 217, 154, 0.22) 35%,
                        transparent 70%),
        radial-gradient(ellipse 90% 50% at 50% 80%,
                        rgba(80, 130, 220, 0.32) 0%,
                        transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* The screenshot itself: tilted, sized, shadowed, sitting above the
   glow. */
.hero-stage .hero-device {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: perspective(1200px) rotateX(12deg) rotateY(-9deg);
    transform-origin: 50% 60%;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-stage:hover .hero-device {
    transform: perspective(1200px) rotateX(8deg) rotateY(-5deg) translateY(-6px);
}

/* Subtle reflection / floor under the device. */
.hero-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 70%;
    height: 30px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 100% 100% at 50% 0%,
                                rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(8px);
    z-index: 0;
}

@media (max-width: 700px) {
    .hero-stage {
        padding: 40px 16px 60px;
    }
    .hero-stage .hero-device {
        transform: perspective(1200px) rotateX(4deg) rotateY(-2deg);
    }
}

/* ---------- Hero photo (real-world studio shots) ---------- */

/* Variant of the hero presentation for actual product photography —
   the iPad on a real desk, in a studio environment. Real photos
   already carry their own perspective and depth, so we drop the 3D
   tilt that .hero-stage applies to UI screenshots and let the photo
   speak for itself. Keeps the same coloured spotlight glow behind
   for visual continuity. */
.hero-photo {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
    padding: 20px 40px 60px;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(ellipse 60% 55% at 50% 45%,
                        rgba(255, 210, 74, 0.32) 0%,
                        rgba(108, 217, 154, 0.18) 35%,
                        transparent 70%),
        radial-gradient(ellipse 90% 50% at 50% 80%,
                        rgba(80, 130, 220, 0.24) 0%,
                        transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

@media (max-width: 700px) {
    .hero-photo {
        padding: 20px 16px 40px;
    }
}

/* ---------- Image placeholders ---------- */

/* A boxed area where a screenshot will go. Sized by aspect-ratio so
   it occupies its real-world footprint in the layout even before the
   image is in place. Replace `.placeholder` with an `<img>` later
   without touching anything else. */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed rgba(255, 210, 74, 0.25);
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%,
                        rgba(60, 90, 180, 0.18), transparent 70%),
        linear-gradient(160deg,
                        rgba(255, 255, 255, 0.03) 0%,
                        rgba(255, 255, 255, 0.01) 100%);
    color: #8a93a6;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 18px;
    margin: 32px 0;
}

.placeholder .ph-label {
    opacity: 0.75;
}

.placeholder .ph-label strong {
    display: block;
    color: #c7cdd9;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

/* Real screenshots in the same slots as placeholders. Shared rounded
   corners, drop shadow and centered layout. Sized by the same
   aspect-ratio modifier classes so they can drop into existing
   placeholder slots without layout change. */
.screenshot {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    margin: 32px 0;
}

.screenshot--ipad   { max-width: 720px; margin-inline: auto; }
.screenshot--iphone { max-width: 280px; margin-inline: auto; }
.screenshot--mac    { max-width: 880px; margin-inline: auto; }

.placeholder--wide   { aspect-ratio: 16 / 9;  width: 100%; }
.placeholder--ipad   { aspect-ratio: 4 / 3;   max-width: 720px; margin-inline: auto; }
.placeholder--iphone { aspect-ratio: 9 / 19;  max-width: 280px; margin-inline: auto; }
.placeholder--mac    { aspect-ratio: 16 / 10; width: 100%; max-width: 880px; margin-inline: auto; }

.placeholder-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 32px 0;
}

.placeholder-row .placeholder {
    margin: 0;
}

@media (max-width: 700px) {
    .placeholder-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Status banner / dev badge ---------- */

/* Full-width strip below the header, used to flag pages whose
   subject is not yet shipping. Warm amber so it reads as a notice,
   not an error. */
.status-banner {
    background: linear-gradient(90deg,
                                rgba(255, 145, 60, 0.15),
                                rgba(255, 145, 60, 0.06));
    border-bottom: 1px solid rgba(255, 145, 60, 0.35);
    color: #ffb070;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-banner .status-icon {
    display: inline-block;
    margin-right: 8px;
}

.status-banner .status-detail {
    color: #c7cdd9;
    font-weight: 400;
    margin-left: 6px;
}

/* Pill-style badge for inline use on cards / hero rows. Same colour
   family as the banner. */
.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 145, 60, 0.14);
    border: 1px solid rgba(255, 145, 60, 0.40);
    color: #ffb070;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.dev-badge::before {
    content: "●";
    color: #ff913c;
    font-size: 0.65rem;
}

/* Override of `.product-card .label` when the card is for an
   in-development product — replaces the small grey label with a
   visible amber pill. */
.product-card .label.label--dev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 145, 60, 0.14);
    border: 1px solid rgba(255, 145, 60, 0.40);
    color: #ffb070;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.product-card .label.label--dev::before {
    content: "●";
    color: #ff913c;
    font-size: 0.6rem;
}

/* ---------- Price tag ---------- */

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    background: rgba(108, 217, 154, 0.10);
    border: 1px solid rgba(108, 217, 154, 0.30);
    color: #6cd99a;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.price-tag .price-detail {
    color: #b8bfcc;
    font-weight: 400;
    font-size: 0.85rem;
}

/* ---------- App Store badge ---------- */

/* Apple's official "Download on the App Store" badge. The SVG is the
   regional artwork from Apple's marketing-tools generator; we host
   it locally so the page renders without external requests. Min
   height per Apple's guidelines is 40 pt — we render at 56 px tall
   so it sits visually prominent in the hero without dwarfing the
   tagline next to it. */
.app-store-badge {
    display: inline-block;
}
.app-store-badge img {
    height: 56px;
    width: auto;
    display: block;
}
.hero-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;   /* Flex erbt kein text-align — Center explizit */
    gap: 18px;
}
.hero-cta-meta {
    color: #b8bfcc;
    font-size: 0.92rem;
    line-height: 1.4;
    text-align: left;          /* nach dem Center-Wrap soll der Text linksbündig bleiben */
}
.hero-cta-meta strong {
    color: #6cd99a;
    font-weight: 600;
}

/* ---------- Guide / long-form documentation ---------- */

/* Container that constrains long-form prose to a comfortable reading
   measure (roughly 65 ch) inside the wider site container. */
.guide {
    max-width: 720px;
    margin: 0 auto;
}

.guide h2 {
    margin-top: 3.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide h3 {
    margin-top: 2rem;
    color: #f5f7fb;
}

.guide ul,
.guide ol {
    padding-left: 1.4rem;
    color: #c7cdd9;
}

.guide li {
    margin: 0.35rem 0;
}

.guide strong {
    color: #f5f7fb;
}

/* Table of contents block sitting near the top of a long doc. */
.guide .toc {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0 48px;
}

.guide .toc > p {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: #ffd24a;
    font-weight: 600;
}

.guide .toc ol {
    margin: 0;
    padding-left: 1.4rem;
    color: #c7cdd9;
}

.guide .toc a {
    color: #c7cdd9;
}

.guide .toc a:hover {
    color: #ffd24a;
}

/* Inline keycap / button label. */
.guide kbd {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 0.05em 0.45em;
    color: #f5f7fb;
    white-space: nowrap;
}

/* Highlighted aside / practical workflow callout. */
.guide .tip {
    background: rgba(108, 217, 154, 0.07);
    border-left: 3px solid #6cd99a;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    color: #c7cdd9;
}

.guide .tip strong {
    display: block;
    color: #6cd99a;
    margin-bottom: 4px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

/* Reference / measurement tables. */
.guide table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.95rem;
}

.guide th,
.guide td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.guide th {
    color: #ffd24a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    border-bottom-color: rgba(255, 210, 74, 0.30);
}

.guide td strong {
    color: #f5f7fb;
}

.guide code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.05em 0.4em;
    border-radius: 4px;
    color: #f5f7fb;
}

.guide hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 48px 0 24px;
}

/* Inline meta line under a guide title (e.g. "User Guide · iPadOS"). */
.guide .guide-meta {
    color: #8a93a6;
    font-size: 0.92rem;
    margin: -8px 0 28px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 0;
    margin-top: 60px;
    font-size: 0.88rem;
    color: #8a93a6;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: #8a93a6;
    margin-right: 18px;
}

.site-footer a:hover {
    color: #c7cdd9;
}

/* ---------- Eyebrow / accent text ---------- */

.eyebrow {
    color: #ffd24a;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}
