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

:root {
  --bg-start: #0a0a1a;
  --bg-end: #0f1025;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --orange: #f97316;
  --orange-hover: #fb923c;
  --teal: #14b8a6;
  --text: #ffffff;
  --text-muted: #a0a0b8;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.09);
  --nav-height: 64px;
  --section-padding: 120px 0;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-start);
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* === Nav === */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s;
}

#nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

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

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--card-bg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

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

.hero-tagline {
  font-size: 20px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.hero-mission {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

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

.hero-image {
  flex: 1;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.hero-logo-frame {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: logoGlow 4s ease-in-out infinite;
}

.hero-logo-frame img {
  width: 280px;
  height: 280px;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* === Sections Common === */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-inner h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* === About Section === */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: left;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Crintech Section === */
.crintech-block {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.crintech-logo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.crintech-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crintech-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.crintech-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.crintech-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  transition: gap 0.2s;
}

.crintech-link:hover {
  gap: 10px;
}

/* === Process Steps === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.3s, transform 0.3s;
}

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

.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Community / Social === */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.tiktok { background: linear-gradient(135deg, #25f4ee, #fe2c55); }

/* === Footer === */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--accent);
  transition: opacity 0.2s;
}

.footer-copy a:hover {
  opacity: 0.8;
}

/* === Scroll Animations === */
.anim-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.process-grid .process-step:nth-child(2) { transition-delay: 0.1s; }
.process-grid .process-step:nth-child(3) { transition-delay: 0.2s; }
.process-grid .process-step:nth-child(4) { transition-delay: 0.3s; }

/* === Legal Pages === */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--accent);
  transition: opacity 0.2s;
}

.legal-page a:hover {
  opacity: 0.8;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
}

.legal-back:hover {
  opacity: 0.8;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-height) + 40px);
    gap: 32px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 260px;
    margin: 0 auto;
    order: -1;
  }

  .hero-logo-frame {
    width: 220px;
    height: 220px;
  }

  .hero-logo-frame img {
    width: 200px;
    height: 200px;
  }

  .hero-logo-frame::before {
    inset: -12px;
  }

  .nav-center {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
  }

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

  .nav-hamburger {
    display: block;
  }

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

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

  .crintech-block {
    flex-direction: column;
    text-align: center;
  }

  .crintech-info p {
    text-align: left;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 17px;
  }

  .hero-desc {
    font-size: 15px;
  }

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

  .section-inner h2 {
    font-size: 26px;
  }

  .section-desc {
    font-size: 15px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
