/* O2CyberTech website — single stylesheet, no external requests. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e6ec;
  --text: #1a1f26;
  --text-soft: #5a6572;
  --accent: #2471d9;
  --accent-strong: #1b57a6;
  --accent-contrast: #ffffff;
  --badge-bg: rgba(36, 113, 217, 0.12);
  --radius: 14px;
  --maxw: 46rem;
  --maxw-wide: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --bg-soft: #151c24;
    --surface: #161d26;
    --border: #29323d;
    --text: #e7eaee;
    --text-soft: #9aa6b2;
    --accent: #5b9bff;
    --accent-strong: #8fbcff;
    --accent-contrast: #0f141a;
    --badge-bg: rgba(91, 155, 255, 0.16);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 20px 24px;
}
.wordmark {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wordmark-accent { color: var(--accent); }
.site-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--accent); }

/* Main content */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 64px;
}
main.wide { max-width: var(--maxw-wide); }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.6em 0 0.3em; }
p, li { color: var(--text); }
.lead { font-size: 1.15rem; color: var(--text-soft); margin: 0.4em 0 1.4em; }
ul, ol { padding-left: 1.25em; }
li { margin: 0.3em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.muted { color: var(--text-soft); }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.hero-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 64px 24px 56px;
  text-align: center;
}
.hero-inner h1 { font-size: 2.6rem; }
.hero-inner .lead { max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Product hero title -- a bigger, distinct treatment for a product name
   (Pilluvia), separate from the plain company h1 so the O2CyberTech
   homepage's own hero is unaffected. Used on the dedicated Pilluvia page
   (inside .hero-inner) AND on the Pilluvia card elsewhere (.product-card,
   below) so the two look like the same product everywhere, not two
   different designs. The gradient runs accent -> a soft violet, echoing
   the capsule icon's blue/purple without drifting from the site's calm
   palette. */
.product-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.1em 0 0.2em;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 28px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}
.card h2 { margin-top: 0; }

/* A card that fronts a product (currently just Pilluvia) -- same
   bg-soft tone and centered layout as that product's own hero section,
   so the teaser on the homepage/apps page reads as the same product,
   not a differently-styled preview of it. */
.product-card {
  background: var(--bg-soft);
  text-align: center;
  padding: 40px 24px;
}
.product-card .lead { max-width: 36rem; margin: 0 auto 20px; text-align: left; }
.product-card .button { margin-top: 4px; }
.product-card .linkrow { justify-content: center; margin-top: 20px; }

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--badge-bg);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 8px;
}
.button:hover { background: var(--accent-strong); color: var(--accent-contrast); }

/* Apple's own official badge artwork (see /assets/app-store-badge-*.svg) --
   displayed larger than its native 120x40 for legibility, aspect ratio
   preserved via height: auto. Per Apple's marketing guidelines the badge
   itself must never be recolored, stretched, or otherwise modified --
   the clear space and inline-block wrapper below are the only layout
   Apple allows around it. */
.store-badge { display: inline-block; margin-top: 12px; }
.store-badge img { display: block; width: 180px; height: auto; }

/* Side-by-side App Store + Google Play row for the product hero. Google
   Play isn't live yet -- that badge is real, official artwork (not
   modified) but plainly not a link (no dead tap target) and marked
   "Coming soon" rather than implying the app is already there. */
.store-badges {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 4px 0 28px;
}
.store-badges img { display: block; height: 54px; width: auto; }
.store-badge-pending {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
}
.store-badge-pending .pending-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.linkrow { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }

.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.contact-box p { margin: 0.4em 0; }

/* Medical / legal notice callout */
.notice {
  background: rgba(214, 158, 46, 0.10);
  border: 1px solid rgba(214, 158, 46, 0.5);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.notice p { margin: 0.4em 0; }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

/* Feature grid on the landing page */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 20px 0 8px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature h3 { margin: 0 0 0.3em; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 28px 24px 48px;
  line-height: 1.9;
}
.site-footer p { margin: 0.35em 0; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 520px) {
  h1 { font-size: 1.7rem; }
  .hero-inner h1 { font-size: 2rem; }
  .product-title { font-size: 3rem; }
  .product-tagline { font-size: 1.1rem; }
  .hero-inner { padding: 48px 20px 40px; }
  .product-card { padding: 32px 20px; }
}
