/* The Cachaña showcase page. Colours, type and buttons follow the dark house theme of
   striatumos.consulting (its src/assets/site.css); the rest is this page's own. */
:root {
  --red: #F04A47;
  --orange: #E3710D;
  --yellow: #F2D00D;
  --green: #1FA34A;
  --blue: #5B82F5;
  --violet: #C455DE;
  --teal: #14B8A6;
  --pink: #F0609E;
  --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));

  --bg: #0E1014;
  --surface: #171A20;
  --text: #E8EAED;
  --heading: #F3F4F6;
  --muted: #A0A6B0;
  --line: #2A2F38;
  --soft: #C5CAD3;
  --slate: #2B313C;
  --ink: #0E1014;

  --radius: 14px;
  --max: 1120px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; display: block; height: 5px; background: var(--rainbow); }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header: the StriatumOS logo back to the main site, and the ES / EN switch */
.site-header { padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; }
.brand img { height: 48px; width: auto; }
.lang { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a { font: 600 13px/1 var(--font); letter-spacing: .04em; color: var(--muted); padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.lang a[aria-current="page"] { background: var(--slate); color: #fff; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.btn-primary { color: #fff; border: 3px solid transparent; background: linear-gradient(var(--slate), var(--slate)) padding-box, var(--rainbow) border-box; }

/* Hero */
.hero { padding: 36px 0 64px; }
.app-name { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-name img { width: 64px; height: 64px; border-radius: 16px; }
.app-name span { font-size: 30px; font-weight: 700; color: var(--heading); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 700; max-width: 18ch; }
.hero-bar { width: 112px; height: 5px; border-radius: 5px; background: var(--rainbow); margin: 24px 0; }
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--soft); max-width: 60ch; }
.hero .note { color: var(--text); max-width: 60ch; margin-top: 14px; font-weight: 500; }
.hero .btns { margin-top: 28px; }
.hero .demo-note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(27px, 4.4vw, 38px); }

/* Features: text beside its clip (stacked on phones) */
.feature { display: grid; gap: 22px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature h3 { font-size: 24px; margin-bottom: 10px; }
.feature h3::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--c); margin-bottom: 14px; }
.feature p { color: var(--soft); max-width: 52ch; }
.clips-note { margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 15px; }

/* A clip: phone size below 900px, desktop size above (site.js picks the files) */
.clip { position: relative; margin: 0 auto; width: 100%; max-width: 360px; border-radius: 26px; overflow: hidden;
        border: 1px solid var(--line); background: color-mix(in srgb, var(--c) 10%, var(--bg)); aspect-ratio: 432 / 936; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip-btn {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(14, 16, 20, .72); color: #fff; opacity: .85;
}
.clip-btn svg { width: 18px; height: 18px; }
.clip-btn .i-pause, .clip.is-playing .clip-btn .i-play { display: none; }
.clip.is-playing .clip-btn .i-pause { display: block; }

/* Cards (more features, data, coming soon) */
.grid { display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.more { margin-top: 28px; }
.soon .card { border-style: dashed; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
         color: var(--ink); background: var(--c); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }

/* Contact and footer */
.contact .wrap { display: grid; gap: 18px; }
.contact h2 { font-size: clamp(25px, 4vw, 34px); }
.contact p { color: var(--soft); }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0; position: relative; color: var(--muted); font-size: 15px; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rainbow); }
.site-footer .wrap { display: grid; gap: 6px; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .soon .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 2fr; gap: 40px; }
  .feature.flip { grid-template-columns: 2fr 1fr; }
  .feature.flip .feature-text { order: 2; }
  .clip { max-width: none; aspect-ratio: 1120 / 700; border-radius: 12px; }
}
