/* ============================================
   CYNPLI — Orbital Dark Theme
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --c-bg: #050508;
  --c-bg-card: rgba(255,255,255,0.025);
  --c-bg-card-hover: rgba(255,255,255,0.05);
  --c-border: rgba(255,255,255,0.06);
  --c-border-hover: rgba(255,255,255,0.12);
  --c-teal: #0F8B6E;
  --c-teal-light: #14B890;
  --c-teal-dark: #0A6B54;
  --c-teal-glow: rgba(15,139,110,0.15);
  --c-teal-subtle: rgba(15,139,110,0.08);
  --c-text: #ffffff;
  --c-text-muted: rgba(255,255,255,0.55);
  --c-text-dim: rgba(255,255,255,0.3);
  --c-text-faint: rgba(255,255,255,0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Scroll Animation Base --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 0.5px solid transparent;
}
.nav.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--c-border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--c-teal);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-teal);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--c-teal); }
.nav-links a.active::after { width: 100%; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-text-muted);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(5,5,8,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 0.5px solid var(--c-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 18px; }
}

/* ============================================
   ORBITAL DECORATIONS
   ============================================ */
.orbital-container {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15,139,110,0.1);
}
.orbital-ring-bright {
  border-color: rgba(15,139,110,0.2);
}
.orbital-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-teal);
  opacity: 0.4;
}
.orbital-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,139,110,0.15) 0%, transparent 70%);
}

/* Parallax orbital set */
.orbitals-hero {
  position: absolute;
  top: 0;
  right: -10%;
  width: 700px;
  height: 700px;
}
.orbitals-hero .ring-1 {
  width: 600px; height: 600px;
  top: 0; right: 0;
  border-color: rgba(15,139,110,0.06);
}
.orbitals-hero .ring-2 {
  width: 440px; height: 440px;
  top: 80px; right: 80px;
  border-color: rgba(15,139,110,0.1);
}
.orbitals-hero .ring-3 {
  width: 280px; height: 280px;
  top: 160px; right: 160px;
  border-color: rgba(15,139,110,0.16);
}
.orbitals-hero .ring-4 {
  width: 120px; height: 120px;
  top: 240px; right: 240px;
  background: radial-gradient(circle, rgba(15,139,110,0.12) 0%, transparent 70%);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 0.5px solid rgba(15,139,110,0.3);
  border-radius: 24px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--c-teal);
  text-transform: uppercase;
  margin-bottom: 28px;
  background: var(--c-teal-subtle);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .accent {
  color: var(--c-teal);
}
.hero p {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
}
.btn-primary {
  background: var(--c-teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-teal-light);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 0.5px solid var(--c-border-hover);
}
.btn-ghost:hover {
  color: var(--c-text);
  border-color: var(--c-text-dim);
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-teal);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 16px;
  color: var(--c-text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--c-bg-card);
  border: 0.5px solid var(--c-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card:hover {
  background: var(--c-bg-card-hover);
  border-color: var(--c-border-hover);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--c-teal);
  fill: none;
  stroke-width: 1.8;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-teal);
  font-weight: 500;
  transition: gap 0.3s var(--ease-out);
}
.card-link:hover { gap: 10px; }

/* Orbital accent on cards */
.card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,139,110,0.08) 0%, transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.card:hover::before { opacity: 1; }

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,139,110,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 0.5px solid var(--c-border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: 13px;
  color: var(--c-text-dim);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--c-teal); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 0.5px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--c-text-faint);
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding: 160px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,139,110,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .section-title {
  font-size: clamp(32px, 5vw, 52px);
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.product-card {
  background: var(--c-bg-card);
  border: 0.5px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.product-card:hover {
  border-color: var(--c-border-hover);
  transform: translateY(-6px);
}
.product-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--c-teal-subtle), rgba(15,139,110,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-img .orbital-accent {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(15,139,110,0.15);
}
.product-card-img .orbital-accent:nth-child(2) {
  width: 110px;
  height: 110px;
  border-color: rgba(15,139,110,0.25);
}
.product-card-img .phone-mock {
  width: 70px;
  height: 130px;
  background: #111;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}
.product-card-img .phone-screen {
  position: absolute;
  top: 8px;
  left: 4px;
  right: 4px;
  bottom: 8px;
  background: var(--c-teal-dark);
  border-radius: 10px;
}
.product-card-body {
  padding: 28px;
}
.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: var(--c-teal-subtle);
  color: var(--c-teal);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-story-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}
.about-story-text p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
}
.about-visual .orbital-set {
  position: relative;
  width: 260px;
  height: 260px;
}
.about-visual .orbital-set div {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.about-visual .orbit-1 {
  width: 260px; height: 260px;
  border: 1.5px solid rgba(15,139,110,0.12);
}
.about-visual .orbit-2 {
  width: 190px; height: 190px;
  border: 1.5px solid rgba(15,139,110,0.2);
}
.about-visual .orbit-3 {
  width: 120px; height: 120px;
  border: 1.5px solid rgba(15,139,110,0.3);
}
.about-visual .orbit-core {
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(15,139,110,0.3) 0%, rgba(15,139,110,0.05) 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-content {
  max-width: 720px;
}
.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--c-text);
}
.privacy-content h2:first-of-type {
  margin-top: 0;
}
.privacy-content p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.privacy-content ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.privacy-content li {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.privacy-date {
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 40px;
}

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 0.5px;
  background: var(--c-border);
  margin: 0;
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mb-48 { margin-bottom: 48px; }
.mb-32 { margin-bottom: 32px; }
.mt-64 { margin-top: 64px; }

/* ============================================
   PARALLAX ELEMENTS
   ============================================ */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .card { padding: 24px; }
  .product-card-body { padding: 20px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
