@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════
   Minimal Reset (replaces Tailwind base)
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ══════════════════════════════════════
   Theme: Light (default)
   ══════════════════════════════════════ */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --border-color: #E2E8F0;
  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --primary-500: #6366F1;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --primary-800: #3730A3;
}

/* ══════════════════════════════════════
   Theme: Dark (OS preference)
   ══════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --border-color: #334155;
    --card-bg: #1E293B;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(15, 23, 42, 0.9);
    --primary-500: #818CF8;
    --primary-600: #6366F1;
    --primary-700: #4F46E5;
    --primary-800: #4338CA;
  }
}

/* ══════════════════════════════════════
   Base
   ══════════════════════════════════════ */
html {
  font-size: 110%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.2s, color 0.2s;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Skip to content (a11y) */
.skip-link {
  position: absolute; top: -100%; left: 0;
  padding: 8px 16px; background: var(--primary-600); color: #fff;
  z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Links */
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   Components
   ══════════════════════════════════════ */

/* Video mockups */
.mockup-video {
  border-radius: 1rem; overflow: hidden;
  box-shadow: var(--card-shadow); max-width: 320px; width: 100%;
}
.mockup-video video, .mockup-video img { width: 100%; height: auto; display: block; }

/* Scroll animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll { animation: fadeInUp 0.5s ease-out both; }
.stagger > :nth-child(1) { animation-delay: 0s; }
.stagger > :nth-child(2) { animation-delay: 0.1s; }
.stagger > :nth-child(3) { animation-delay: 0.2s; }
.stagger > :nth-child(4) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { animation: none; opacity: 1; }
}

/* Cards */
.card {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 0.75rem; box-shadow: var(--card-shadow); padding: 1.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background: var(--primary-600); color: #fff;
  font-weight: 600; border-radius: 0.5rem; transition: background-color 0.15s; text-decoration: none;
}
.btn-primary:hover { background: var(--primary-700); text-decoration: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background: var(--bg-tertiary); color: var(--text-primary);
  font-weight: 600; border-radius: 0.5rem; border: 1px solid var(--border-color);
  transition: background-color 0.15s; text-decoration: none;
}
.btn-secondary:hover { background: var(--border-color); text-decoration: none; }

/* Nav */
.nav-link {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  color: var(--text-secondary); font-weight: 500; font-size: 0.875rem;
  transition: color 0.15s, background-color 0.15s; text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); text-decoration: none; }
.nav-link.active { color: var(--primary-600); background: var(--bg-secondary); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; border-radius: 9999px;
  background: var(--bg-tertiary); color: var(--primary-600);
}

/* Section spacing */
.section { padding: 4rem 1rem; }
@media (min-width: 768px) {
  .section { padding: 5rem 1.5rem; }
}

/* ══════════════════════════════════════
   Utility Classes
   ══════════════════════════════════════ */

/* Display */
.hidden      { display: none; }
.flex        { display: flex; }
.grid        { display: grid; }
.inline-flex  { display: inline-flex; }
.inline-block { display: inline-block; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.top-0    { top: 0; }
.-top-3   { top: -0.75rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-50     { z-index: 50; }

/* Flexbox */
.flex-shrink-0    { flex-shrink: 0; }
.flex-wrap        { flex-wrap: wrap; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }

/* Order */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Gap */
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Width / Height */
.w-10   { width: 2.5rem; }
.w-12   { width: 3rem; }
.w-full { width: 100%; }
.h-10   { height: 2.5rem; }
.h-12   { height: 3rem; }
.h-14   { height: 3.5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* Margin */
.mx-auto { margin-inline: auto; }
.mt-1    { margin-top: 0.25rem; }
.mt-3    { margin-top: 0.75rem; }
.mb-1    { margin-bottom: 0.25rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-10   { margin-bottom: 2.5rem; }

/* Padding */
.p-4     { padding: 1rem; }
.px-3    { padding-inline: 0.75rem; }
.px-4    { padding-inline: 1rem; }
.px-5    { padding-inline: 1.25rem; }
.px-6    { padding-inline: 1.5rem; }
.py-0\.5 { padding-block: 0.125rem; }
.py-1    { padding-block: 0.25rem; }
.py-2\.5 { padding-block: 0.625rem; }
.py-3    { padding-block: 0.75rem; }
.py-4    { padding-block: 1rem; }
.py-10   { padding-block: 2.5rem; }
.pt-0    { padding-top: 0; }
.pb-8    { padding-bottom: 2rem; }

/* Space-Y (owl selector) */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Typography */
.text-xs   { font-size: 0.75rem;  line-height: 1.333; }
.text-sm   { font-size: 0.875rem; line-height: 1.429; }
.text-base { font-size: 1rem;     line-height: 1.5; }
.text-lg   { font-size: 1.125rem; line-height: 1.556; }
.text-xl   { font-size: 1.25rem;  line-height: 1.4; }
.text-2xl  { font-size: 1.5rem;   line-height: 1.333; }
.text-3xl  { font-size: 1.875rem; line-height: 1.2; }
.text-4xl  { font-size: 2.25rem;  line-height: 1.111; }
.text-center { text-align: center; }
.text-white  { color: #fff; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Border */
.border-t    { border-top: 1px solid; }
.border-b    { border-bottom: 1px solid; }
.rounded-full { border-radius: 9999px; }
.rounded-lg  { border-radius: 0.5rem; }

/* Background */
.bg-white { background-color: #fff; }

/* Backdrop */
.backdrop-blur-sm { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ══════════════════════════════════════
   Mobile Nav
   ══════════════════════════════════════ */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; border-radius: 0.375rem; color: var(--text-secondary);
}
.hamburger:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.hamburger svg { display: block; }

@media (max-width: 767px) {
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0.25rem;
    position: fixed; top: 3.5rem; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary); padding: 1rem; z-index: 49;
    overflow-y: auto;
  }
  .nav-links.open .nav-link {
    width: 100%; padding: 0.75rem 1rem; font-size: 1rem;
  }
  .nav-links.open .nav-link span { display: inline !important; }
}

/* ══════════════════════════════════════
   Cookie Consent Banner
   ══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--card-bg); border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.cookie-banner-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
}
.cookie-banner-inner p { flex: 1; min-width: 200px; font-size: 0.875rem; color: var(--text-secondary); }
.cookie-banner-inner p a { color: var(--primary-600); }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btns button {
  cursor: pointer; border: none; border-radius: 0.375rem;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.15s;
}
.cookie-btns .btn-accept {
  background: var(--primary-600); color: #fff;
}
.cookie-btns .btn-accept:hover { background: var(--primary-700); }
.cookie-btns .btn-reject {
  background: var(--bg-tertiary); color: var(--text-primary);
}
.cookie-btns .btn-reject:hover { background: var(--border-color); }

/* ══════════════════════════════════════
   Responsive: sm (640px)
   ══════════════════════════════════════ */
@media (min-width: 640px) {
  .sm\:inline       { display: inline; }
  .sm\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════
   Responsive: md (768px)
   ══════════════════════════════════════ */
@media (min-width: 768px) {
  .md\:inline       { display: inline; }
  .md\:order-1      { order: 1; }
  .md\:order-2      { order: 2; }
  .md\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-xl      { font-size: 1.25rem;  line-height: 1.4; }
  .md\:text-3xl     { font-size: 1.875rem; line-height: 1.2; }
  .md\:text-4xl     { font-size: 2.25rem;  line-height: 1.111; }
  .md\:text-5xl     { font-size: 3rem;     line-height: 1; }
}
