/* Ondakit Website — Modern Borderless Editorial Design System */

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

:root {
  /* Color Palette — Matched with Ondakit App Theme */
  --bg-dark: #0c1214;        /* App background --daisy-app */
  --bg-canvas: #10181b;      /* App canvas --daisy-canvas */
  --bg-surface: #151d21;     /* Sidebar & panel surface --daisy-surface */
  --bg-card: #192429;        /* Soft card surface */
  --bg-card-hover: #202d33;  /* Card hover glow */
  --bg-glass: rgba(21, 29, 33, 0.85);
  
  --border-color: transparent; /* No outlines */
  --border-color-hover: transparent;
  
  --primary: #f59e0b;        /* Brand Amber #f59e0b */
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  --primary-dark: #b45309;
  
  --accent-green: #34d399;   /* Emerald Green */
  --secondary: #38bdf8;      /* Electric Cyan */
  
  --text-main: #f1f5f9;      /* App primary text */
  --text-muted: #cbd5e1;     /* App secondary text */
  --text-dim: #94a3b8;       /* App muted text */
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --nav-height: 72px;
  --max-width: 1240px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-sm {
  padding: 48px 0;
}

.text-center { text-align: center; }

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-orange {
  color: var(--primary);
}

/* Header & Navigation (Borderless) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(12, 18, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo-link img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons (No harsh outlines) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #0c1214;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
  background: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Floating Image Screen Containers (No harsh box outlines) */
.img-placeholder-1x1 {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: var(--transition);
}

.img-placeholder-1x1:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.65);
}

.img-placeholder-1x1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Natural-ratio image frame. Same chrome as .img-placeholder-1x1, but the
   height follows the image instead of a fixed aspect-ratio + object-fit: cover.
   Use it for authored artwork (illustrations, diagrams) where cropping would
   cut content — 1x1 is for screenshots, which crop harmlessly. */
.img-frame {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: var(--transition);
  line-height: 0; /* kills the inline-image descender gap under the picture */
}

.img-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.65);
}

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

.img-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(12, 18, 20, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--font-code);
  color: var(--primary);
}

.img-placeholder-graphic {
  text-align: center;
  padding: 32px;
}

.img-placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.img-placeholder-label {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.img-placeholder-file {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Feature Cards Grid (Seamless borderless cards) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: inline-block;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Feature Split Sections (Editorial Layout) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-split h2 {
  font-size: 2.35rem;
  margin-bottom: 16px;
}

.feature-split p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* Badges & Tags (No box outlines) */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* Steps Row (Clean numbered flow) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}

.step-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.75;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Code Snippet Box (Borderless dark canvas) */
.code-block {
  background: #070b0d;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-family: var(--font-code);
  font-size: 0.88rem;
  color: #e2e8f0;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.code-keyword { color: var(--primary); }
.code-func { color: var(--accent-green); }
.code-comment { color: var(--text-dim); }

/* Platform Strip (Borderless smooth pills) */
.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

.platform-pill {
  background: var(--bg-surface);
  border-radius: 9999px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition);
}

.platform-pill:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Footer (Clean borderless bottom) */
.site-footer {
  background: #080c0e;
  padding: 80px 0 40px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  margin-top: 12px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid,
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-split.reverse {
    direction: ltr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
}
