/* ============================================================
   Paneon — App Framework & Products
   ============================================================ */

/* ----------------------------------------------------------
   1. RESET & ROOT
   ---------------------------------------------------------- */

:root {
  --bg: #f8f9fc;
  --bg-alt: #f0f2f7;
  --bg-card: #ffffff;
  --bg-deep: #e8eaf2;
  --border: #d0d5e0;
  --border-light: #e2e6ee;
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --primary-glow: rgba(79, 70, 229, .1);
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, .1);
  --text: #3a4558;
  --text-light: #1a2236;
  --text-muted: #6b7a90;
  --white: #ffffff;
  --black: #111827;

  --section-padding: 7rem 2rem;
  --card-padding: 2rem;
  --gap: 2rem;
  --transition: 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-alt: #161922;
  --bg-card: #1c1f2e;
  --bg-deep: #0a0c12;
  --border: #2a2d3a;
  --border-light: #22253a;
  --text: #c8cdd8;
  --text-light: #e8ecf4;
  --text-muted: #7a8598;
  --white: #e8ecf4;
  --black: #0f1117;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--primary);
  color: #fff;
}


/* ----------------------------------------------------------
   2. TYPOGRAPHY
   ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text-light);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-tag::before {
  content: '// ';
  opacity: 0.5;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-title span {
  color: var(--accent);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}


/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
  background: var(--bg);
}

.section-alt {
  padding: var(--section-padding);
  background: var(--bg-alt);
}

.section-deep {
  padding: var(--section-padding);
  background: var(--bg-deep);
}

.section-dark {
  padding: var(--section-padding);
  background: var(--bg-card);
}


/* ----------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] nav {
  background: rgba(15, 17, 23, 0.85);
}

nav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: var(--transition);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}


/* ----------------------------------------------------------
   5. HERO
   ---------------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ----------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}


/* ----------------------------------------------------------
   7. BANNER STRIP
   ---------------------------------------------------------- */

.banner-strip {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.banner-stat .number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.banner-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}


/* ----------------------------------------------------------
   8. CARDS
   ---------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  position: relative;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.card h3 {
  margin-bottom: 0.75rem;
}

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

.card .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 700;
}


/* ----------------------------------------------------------
   9. PRODUCT SECTION
   ---------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.product-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.product-visual .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.tech-list {
  list-style: none;
  padding: 0;
}

.tech-list li {
  padding: 0.75rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.tech-list li:last-child {
  border-bottom: none;
}

.tech-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}


/* ----------------------------------------------------------
   10. TECH STACK
   ---------------------------------------------------------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.tech-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-item .tech-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.tech-item h4 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.tech-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}


/* ----------------------------------------------------------
   11. CTA
   ---------------------------------------------------------- */

.cta-section {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}


/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.25rem 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: 1140px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ----------------------------------------------------------
   13. ANIMATIONS
   ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ----------------------------------------------------------
   14. RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .banner-strip {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 7rem 1.5rem 4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 4rem 1.25rem;
    --card-padding: 1.5rem;
  }

  h1 { font-size: 1.8rem; }
}
