/* OVOC Tech Lab — calm, premium studio look. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url('/fonts/CormorantGaramond_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-display: swap; src: url('/fonts/CormorantGaramond_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('/fonts/Montserrat_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url('/fonts/Montserrat_500Medium.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/fonts/Montserrat_600SemiBold.woff2') format('woff2'); }

:root {
  /* OVOC Color's own colors (src/constants/theme.ts and GoldButton in the app) */
  --navy: #0B3F78;        /* blueDeep: headings */
  --navy-deep: #0B3F78;
  --blue-mid: #1677C2;
  --cyan: #04CCE4;
  --cyan-deep: #0398B0;
  --ink: #13212E;         /* text */
  --muted: #5E6B78;       /* secondary text */
  --line: #D6E0E8;        /* borders */
  --cream: #EBF1F5;       /* page background */
  --card: #FFFFFF;
  --gold: #E9C24A;
  --gold-soft: #FFE79A;   /* goldLight */
  --gold-grad: linear-gradient(135deg, #FFF3C4 0%, #FFE79A 35%, #E9C24A 100%);
  --gold-btn: linear-gradient(180deg, #E8B84A 0%, #D29A2C 55%, #B07A1C 100%);
  --cyan-btn: linear-gradient(180deg, #4FE0F0 0%, #04CCE4 50%, #0398B0 100%);
  --radius: 22px;
  --max: 1120px;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); }
a:hover { color: var(--blue-mid); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-deep); margin-bottom: .8em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(22, 119, 194, .88); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 30px; width: auto; }
/* home page: the ocean background runs up behind the menu (no bar, no line) */
.home .site-header { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.home .hero { padding-top: 164px; }
/* a soft blue shade from the top so the menu reads clearly on the light ocean */
.home .hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 260px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 45, 90, .6) 0%, rgba(8, 45, 90, .38) 30%, rgba(8, 45, 90, .16) 62%, rgba(8, 45, 90, 0) 100%); }
.home .site-header .logo img { filter: drop-shadow(0 2px 6px rgba(8, 45, 90, .45)); }
.home .nav a { text-shadow: 0 1px 8px rgba(8, 45, 90, .45); }
.nav { display: flex; gap: 36px; }
.nav a { position: relative; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; opacity: .95; transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a:hover { opacity: 1; color: var(--gold-soft); }

/* ---------- hero ---------- */
/* the OVOC Color ocean background: the photo slowly drifts, soft bubbles float and twinkle over it */
.ocean { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: #2E86C1; }
.ocean > .ocean-bg { position: absolute; inset: -15%; z-index: -2; background: url('/images/bg-ocean.webp') center 40% / cover no-repeat; animation: drift 24s ease-in-out infinite alternate; }
.ocean::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 63, 120, .22) 0%, rgba(11, 63, 120, .32) 50%, rgba(8, 45, 90, .55) 100%); }
.ocean > .wrap { position: relative; }
/* "Say hello": the darker, deeper-blue part of the same photo */
.band.ocean > .ocean-bg { background-position: center 96%; }
.band.ocean::after { background: linear-gradient(180deg, rgba(11, 63, 120, .25) 0%, rgba(11, 63, 120, .45) 100%); }
.bokeh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bokeh i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .28) 38%, rgba(255, 255, 255, 0) 70%); opacity: 0; animation: bubble var(--d) ease-in-out var(--w) infinite alternate; }
.bokeh i.c { background: radial-gradient(circle, rgba(189, 246, 255, .8) 0%, rgba(127, 230, 245, .3) 40%, rgba(127, 230, 245, 0) 70%); }
@keyframes drift { from { transform: scale(1) translate(-1.5%, 1%); } to { transform: scale(1.08) translate(1.5%, -2%); } }
@keyframes bubble { 0% { transform: translate(0, 0) scale(.85); opacity: calc(var(--o) * .3); } 50% { opacity: var(--o); } 100% { transform: translate(var(--x), var(--y)) scale(1.1); opacity: calc(var(--o) * .45); } }
@media (prefers-reduced-motion: reduce) { .ocean > .ocean-bg, .bokeh i { animation: none; } .bokeh i { opacity: calc(var(--o) * .7); } }
.ocean h1, .ocean h2 { color: #fff; text-shadow: 0 2px 18px rgba(8, 45, 90, .35); }
/* gold on the light ocean needs a soft dark halo to stay readable */
.ocean h1 em, .ocean .hero-logo, .ocean .app-head img { filter: drop-shadow(0 2px 8px rgba(8, 45, 90, .55)); }
.ocean h1 em { text-shadow: none; }
.ocean .eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(8, 45, 90, .45); }
.ocean p { text-shadow: 0 1px 10px rgba(8, 45, 90, .3); }

.hero { padding: 96px 0 110px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #fff; }

.hero-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero-logo img { height: 64px; width: auto; }
.hero-logo span { font-weight: 600; font-size: 2.3rem; letter-spacing: .02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-btn); color: #fff; box-shadow: 0 6px 18px rgba(154, 106, 0, .45); text-shadow: 0 1px 2px rgba(120, 80, 0, .35); }
.btn-gold:hover { color: #fff; }
.btn-line { border: 1.5px solid currentColor; color: inherit; background: transparent; }
.btn-dark { background: var(--cyan-btn); color: #fff; box-shadow: 0 5px 14px rgba(3, 117, 138, .35); }
.btn-dark:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.soon { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); color: #6E531A; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 36px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value h3 { font-size: 1.35rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }
.value .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--cyan-deep); font-size: 1.3rem; margin-bottom: 14px; }

.app { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.app:first-of-type { border-top: 0; }
.app.flip .app-text { order: 2; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-head img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 18px rgba(14, 42, 71, .18); }
.app-head h3 { margin: 0; font-size: 1.9rem; }
.app-head .tag { font-size: .85rem; color: var(--muted); }
.app ul { padding: 0; margin: 0 0 1em; list-style: none; }
.app li { position: relative; padding-left: 26px; margin-bottom: 6px; color: var(--ink); }
.app li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan-deep); font-weight: 700; }
.shots { display: flex; gap: 14px; justify-content: center; }
.shots img { width: 31%; border-radius: 18px; box-shadow: 0 14px 34px rgba(14, 42, 71, .2); }
.shots img:nth-child(2) { transform: translateY(-18px); }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.covers img { width: 100%; border-radius: 14px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 8px 20px rgba(14, 42, 71, .14); }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-links .btn { padding: 11px 20px; font-size: .88rem; }

.band { border-radius: 28px; padding: 54px 40px; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #fff; max-width: 600px; margin: 0 auto 1em; }

/* ---------- simple pages (privacy, support, terms) ---------- */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { color: #fff; margin: 0; }
.prose { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.note { background: #FFF6DC; border: 1px solid var(--gold-soft); border-radius: 14px; padding: 14px 18px; font-size: .92rem; color: #5A4512; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: .7em 0 0; color: var(--muted); }
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sub-nav a { color: #fff; text-decoration: none; font-size: .85rem; font-weight: 500; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .5); padding: 6px 14px; border-radius: 999px; }
.sub-nav a[aria-current='page'] { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--blue-mid) 0%, var(--navy) 100%); color: #fff; padding: 50px 0 34px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-family: var(--text); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.site-footer a { color: #fff; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 34px; padding-top: 20px; font-size: .82rem; color: rgba(255, 255, 255, .9); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; gap: 30px; }
  .app.flip .app-text { order: 0; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .logo span { font-size: 1.05rem; }
  .logo img { height: 24px; }
  .hero { padding: 64px 0 76px; }
  .hero-logo img { height: 44px; }
  .hero-logo span { font-size: 1.6rem; }
  section { padding: 60px 0; }
  .band { padding: 40px 22px; }
  .covers { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

/* ---------- motion: gentle, calm, never in the way ---------- */
/* hero: logo, title, text and buttons rise in one after another */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .hero-logo, .hero h1, .hero .lead, .hero .btn-row, .page-hero h1, .page-hero p, .page-hero .sub-nav, .hero .app-head { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .hero-logo, .hero .app-head { animation-delay: .1s; }
.hero h1, .page-hero h1 { animation-delay: .25s; }
.hero .lead, .page-hero p { animation-delay: .45s; }
.hero .btn-row, .page-hero .sub-nav { animation-delay: .65s; }

/* scroll reveal: things fade and float up as they come into view (site.js adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* phone screenshots float softly, each on its own rhythm */
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.shots img { animation: floaty 6s ease-in-out infinite; }
.shots img:nth-child(2) { animation-delay: -2s; }
.shots img:nth-child(3) { animation-delay: -4s; }
.shots img, .covers img { transition: transform .35s ease, box-shadow .35s ease; }
.covers img:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 30px rgba(11, 63, 120, .2); }

/* cards and icons lift a little on hover */
.value { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.value:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(11, 63, 120, .12); border-color: #BFE9F2; }
.value .ic { transition: transform .4s ease; }
.value:hover .ic { transform: rotate(-8deg) scale(1.12); }
.app-head img { transition: transform .35s ease; }
.app:hover .app-head img { transform: rotate(-4deg) scale(1.06); }

/* gold buttons: a soft shine sweeps across now and then, like in the app */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-20deg); animation: shine 4.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn:hover { box-shadow: 0 10px 24px rgba(11, 63, 120, .25); }

/* gold words in the hero shimmer very slowly */
.hero h1 em { background-size: 200% 100%; animation: rise .9s cubic-bezier(.2, .7, .2, 1) .25s both, shimmer 7s ease-in-out 1.2s infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- home banner: app screenshots fading in and out on the right ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-show { position: relative; height: 470px; animation: rise 1s cubic-bezier(.2, .7, .2, 1) .5s both; }
.hero-show .slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; animation: slideshow 24s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
.hero-show .slide > img { height: 400px; width: auto; border-radius: 26px; box-shadow: 0 24px 50px rgba(8, 45, 90, .45), 0 0 0 1px rgba(255, 255, 255, .25); }
.hero-show figcaption { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 6px rgba(8, 45, 90, .4); white-space: nowrap; }
.hero-show figcaption img { width: 30px; height: 30px; border-radius: 8px; }
/* 6 slides × 4s: each fades and drifts in, rests, then fades out as the next arrives */
@keyframes slideshow {
  0% { opacity: 0; transform: translateY(14px) scale(.97); }
  4% { opacity: 1; transform: none; }
  16.7% { opacity: 1; transform: translateY(-4px); }
  21% { opacity: 0; transform: translateY(-12px) scale(.98); }
  100% { opacity: 0; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-show { height: 400px; }
  .hero-show .slide > img { height: 330px; }
}
@media (prefers-reduced-motion: reduce) { .hero-show .slide:first-child { opacity: 1; } }
