/* ============================================
   APEX BiPara Landing Page - Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0B0E11;
  --bg-secondary: #1E2329;
  --bg-tertiary: #2B3139;
  --text-primary: #EAECEF;
  --text-secondary: #848E9C;
  --text-tertiary: #5E6673;
  --accent-gold: #F0B90B;
  --accent-gold-hover: #D4A20A;
  --accent-gold-10: rgba(240, 185, 11, 0.1);
  --accent-gold-20: rgba(240, 185, 11, 0.2);
  --green: #0ECB81;
  --red: #F6465D;
  --blue: #1E80FF;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

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

/* --- Section --- */
.section {
  padding: 100px 0;
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Typography --- */
.gradient-text {
  background: linear-gradient(135deg, #F0B90B, #F8D12F, #F0B90B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 185, 11, 0.3);
}

.btn--outline {
  border: 1.5px solid var(--bg-tertiary);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 48px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(234, 236, 239, 0.06);
}

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

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

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--bg-primary);
}

.navbar__logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.navbar__logo-apex {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 3px;
}

.navbar__logo-bipara {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 2px;
  opacity: 0.6;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

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

.navbar__actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 14, 17, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-nav .btn {
  margin-top: 16px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-gold-10);
  border: 1px solid var(--accent-gold-20);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* Hero gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   FEATURES (Ozellikler)
   ============================================ */
.features {
  text-align: center;
}

.features .section-subtitle {
  margin: 0 auto 60px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(30, 35, 41, 0.5);
  border: 1px solid rgba(234, 236, 239, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(240, 185, 11, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   ROLE SECTIONS (Destekci / Yayinci / Bayi)
   ============================================ */
.role-section {
  overflow: hidden;
}

.role-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.role-section__inner--reverse {
  direction: rtl;
}

.role-section__inner--reverse > * {
  direction: ltr;
}

.role-section__content {
  display: flex;
  flex-direction: column;
}

.role-section__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.role-section__list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.role-section__list-item svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Video Placeholder */
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(234, 236, 239, 0.08);
}

.video-placeholder__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.video-placeholder__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(240, 185, 11, 0.03) 50%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

.video-placeholder__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 8px 30px rgba(240, 185, 11, 0.3);
}

.video-placeholder__play svg {
  width: 28px;
  height: 28px;
  color: var(--bg-primary);
  margin-left: 3px;
}

.video-placeholder:hover .video-placeholder__play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(240, 185, 11, 0.5);
}

.video-placeholder__label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   HOW IT WORKS (Nasil Calisir)
   ============================================ */
.steps {
  text-align: center;
}

.steps .section-subtitle {
  margin: 0 auto 60px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps__grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold-20), var(--accent-gold), var(--accent-gold-20));
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step-card__number span {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.step-card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
}

.step-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.security-card {
  text-align: center;
  padding: 36px 20px;
  background: rgba(30, 35, 41, 0.3);
  border: 1px solid rgba(234, 236, 239, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.security-card:hover {
  border-color: rgba(240, 185, 11, 0.2);
  transform: translateY(-2px);
}

.security-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gold-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.security-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-gold);
}

.security-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.security-card__desc {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================
   STATS (Rakamlar)
   ============================================ */
.stats {
  text-align: center;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  padding: 32px 16px;
}

.stat-card__number {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ============================================
   FAQ (SSS)
   ============================================ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(234, 236, 239, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: rgba(240, 185, 11, 0.2);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background: rgba(30, 35, 41, 0.3);
  transition: background var(--transition);
}

.faq-item__question:hover {
  background: rgba(30, 35, 41, 0.6);
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08), rgba(240, 185, 11, 0.02));
  border-top: 1px solid rgba(240, 185, 11, 0.1);
  border-bottom: 1px solid rgba(240, 185, 11, 0.1);
}

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  margin: 0 auto 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(234, 236, 239, 0.06);
}

.footer__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(234, 236, 239, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--accent-gold-10);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.footer__social a:hover svg {
  color: var(--accent-gold);
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color var(--transition);
}

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

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

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

  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps__grid::before {
    display: none;
  }

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

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

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

  .footer__grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-section__inner {
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .navbar__links,
  .navbar__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero__title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .role-section__inner,
  .role-section__inner--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .role-section__video {
    order: -1;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid--3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .video-placeholder__play {
    width: 56px;
    height: 56px;
  }

  .video-placeholder__play svg {
    width: 22px;
    height: 22px;
  }
}
