/* ===== Variables ===== */
:root {
  /* Site renkleri: linear-gradient(90deg, #013d2e 0%, #024f3a 30%, #0b6b4f 50%, #024f3a 70%, #013d2e 100%) */
  --color-bg: #013d2e;
  --color-surface: #024f3a;
  --color-surface-hover: #035a42;
  --color-text: #f0f5f3;
  --color-text-muted: #9ab5ab;
  --color-accent: #0b6b4f;
  --color-accent-hover: #0d7a5a;
  --color-accent-glow: rgba(11, 107, 79, 0.45);
  --color-border: #03604a;
  --color-gradient: linear-gradient(90deg, #013d2e 0%, #024f3a 30%, #0b6b4f 50%, #024f3a 70%, #013d2e 100%);
  --font-sans: 'DM Sans', 'Outfit', system-ui, sans-serif;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --transition: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* Banner alanı boyutu (tasarımcı için): 480 × 270 px (16:9) */
  --banner-width: 480px;
  --banner-height: 320px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(rgba(1, 61, 46, 0.85), rgba(1, 61, 46, 0.75)), url('https://files.bamian.store/file-manager/1w9ZqSiNqdCASIPERIBACK.png') center / cover no-repeat fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 61, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-smooth);
}

.nav a:hover {
  color: var(--color-text);
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff !important;
}

.btn-primary .btn-telegram {
  color: #fff;
  fill: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #095a45 100%);
  box-shadow: 0 4px 14px rgba(11, 107, 79, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  box-shadow: 0 6px 24px var(--color-accent-glow);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-telegram {
  flex-shrink: 0;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(11, 107, 79, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(11, 107, 79, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(2, 79, 58, 0.15) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a8e6cf;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(11, 107, 79, 0.35);
  border: 1px solid rgba(11, 107, 79, 0.5);
  border-radius: 100px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--color-text) 0%, rgba(240, 245, 243, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 420px;
  line-height: 1.65;
}

.hero-cta {
  width: fit-content;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Banner alanı: 480 × 270 px (16:9) — Tasarımcı bu boyutta banner hazırlamalı */
.banner-placeholder {
  width: var(--banner-width);
  max-width: 100%;
  height: var(--banner-height);
  background: linear-gradient(145deg, var(--color-surface) 0%, rgba(1, 61, 46, 0.95) 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.banner-placeholder small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-visual .banner-image {
  width: var(--banner-width);
  max-width: 100%;
  height: var(--banner-height);
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 52px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ===== Cards (Advantages) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), background var(--transition), box-shadow var(--transition-smooth);
}

.advantages.is-visible .card {
  opacity: 1;
  transform: translateY(0);
}

.advantages.is-visible .card[data-delay="0"] { transition-delay: 0.05s; }
.advantages.is-visible .card[data-delay="1"] { transition-delay: 0.15s; }
.advantages.is-visible .card[data-delay="2"] { transition-delay: 0.25s; }

.card:hover,
.advantages.is-visible .card:hover {
  background: var(--color-surface-hover);
  border-color: rgba(11, 107, 79, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(11, 107, 79, 0.2);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 18px;
  line-height: 1;
  filter: grayscale(0.2);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ===== Steps (How it works) ===== */
.how-it-works {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.steps {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #095a45 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(11, 107, 79, 0.4);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  background: linear-gradient(145deg, rgba(11, 107, 79, 0.25) 0%, rgba(2, 79, 58, 0.1) 50%, rgba(11, 107, 79, 0.15) 100%);
  border: 1px solid rgba(11, 107, 79, 0.45);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(11, 107, 79, 0.15) inset, 0 20px 50px rgba(0, 0, 0, 0.2);
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(11, 107, 79, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.cta-text {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  position: relative;
}

.cta-btn,
.cta-btn:hover,
.cta-btn:focus-visible {
  color: #fff !important;
}

.cta-btn .btn-telegram {
  color: #fff;
  fill: #fff;
}

.cta-btn {
  position: relative;
  background: linear-gradient(135deg, var(--color-accent) 0%, #095a45 100%);
  box-shadow: 0 4px 20px rgba(11, 107, 79, 0.45);
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  box-shadow: 0 6px 28px var(--color-accent-glow);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.92;
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-text a {
  color: var(--color-accent);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
  }

  .banner-placeholder,
  .hero-visual .banner-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .section {
    padding: 56px 0;
  }

  .cta-inner {
    padding: 40px 24px;
  }
}

/* Optional: mobile nav script will toggle .nav-open on header */
@media (min-width: 701px) {
  .header .nav {
    display: flex !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .section {
    opacity: 1;
    transform: none;
  }

  .advantages .card {
    opacity: 1;
    transform: none;
  }
}
