/* =====================================================
   TERSANE DİJİTAL — Custom CSS
   Tailwind CDN + Alpine.js ile birlikte çalışır
   ===================================================== */

/* ----- Google Font: Inter ----- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* ----- CSS Variables (Dark Mode Default) ----- */
:root,
[data-theme="dark"] {
  --bg-primary: #080808;
  --bg-secondary: #0f0f0f;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --nav-bg: rgba(8, 8, 8, 0.85);
  --grid-color: rgba(255, 255, 255, 0.025);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.1);
  --border-lg: rgba(255, 255, 255, 0.14);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-subtle: #52525b;
  --logo-filter: none;
  --logo-filter-main: none;
  --scrollbar: #2a2a2a;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9fb;
  --nav-bg: rgba(255, 255, 255, 0.85);
  --grid-color: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-md: rgba(0, 0, 0, 0.12);
  --border-lg: rgba(0, 0, 0, 0.16);
  --text-primary: #09090b;
  --text-secondary: #27272a;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  --logo-filter: none;
  --logo-filter-main: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) brightness(1.1);
  --scrollbar: #d4d4d8;
}

/* ----- Logo tema geçişi ----- */
[data-theme="dark"]  .logo-light { display: none; }
[data-theme="dark"]  .logo-dark  { display: block; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ----- Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
}

/* Autofill dark */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-card) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

/* ----- Typography Utilities ----- */
.text-grad {
  background: linear-gradient(135deg, #f5f5f7 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-grad-green {
  background: linear-gradient(135deg, #a4f56e 0%, #6bf007 50%, #4eb205 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-grad-violet {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-grad-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Glass ----- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ----- Glow card on hover ----- */
.card-hover {
  background: var(--border-color);
  border: 1px solid var(--border-color);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.card-hover:hover {
  background: rgba(107, 240, 7, 0.06);
  border-color: rgba(107, 240, 7, 0.2);
}
.card-hover-red:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}
.card-hover-violet:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.2);
}
.card-hover-amber:hover {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
}

/* ----- Buttons ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(135deg, #6bf007 0%, #4eb205 100%);
  box-shadow: 0 0 24px rgba(107, 240, 7, 0.4);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(107, 240, 7, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 9999px;
  color: var(--text-primary);
  background: var(--border-color);
  border: 1px solid var(--border-md);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
}
.btn-secondary:hover {
  border-color: var(--border-lg);
}

.btn-violet {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}
.btn-violet:hover {
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.6);
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
}
.btn-amber:hover {
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.6);
}

/* ----- Scroll Fade-In Animations ----- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.animate-in {
  opacity: 1 !important;
  transform: none !important;
}

/* Staggered delays */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}

/* ----- Navbar ----- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;
}
#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* ----- Hero ----- */
.hero-section {
  position: relative;
  width: 100%;
  height: min(100vh, 820px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Animated background orb */
@keyframes orb-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.28;
  }
}
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(700px, 90vw);
  height: min(500px, 60vw);
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(107, 240, 7, 0.35) 0%,
    rgba(107, 240, 7, 0.15) 40%,
    transparent 70%
  );
  filter: blur(60px);
  animation: orb-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 240, 7, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 240, 7, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    black 30%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    black 30%,
    transparent 100%
  );
}
.hero-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6bf007;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ----- Partners Carousel ----- */
/* ----- Partners Slider ----- */
.partners-slider-wrap {
  position: relative;
  overflow: hidden;
}
.partners-fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(60px, 10vw, 140px);
  background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.partners-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(60px, 10vw, 140px);
  background: linear-gradient(270deg, var(--bg-secondary) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
  padding: 8px 0;
}
.partners-track:hover {
  animation-play-state: paused;
}
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.partner-logo-wrap {
  flex-shrink: 0;
  width: 130px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.partner-logo-wrap:hover {
  opacity: 1;
}
.partner-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ----- Process Timeline ----- */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--border-lg) 8%,
    var(--border-lg) 92%,
    transparent 100%
  );
}

/* ----- FAQ Accordion ----- */
.faq-item details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
}
.faq-item details summary::-webkit-details-marker {
  display: none;
}
.faq-item details[open] summary {
  color: #6bf007;
}
.faq-item details summary .faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.faq-item details[open] summary .faq-arrow {
  transform: rotate(180deg);
  color: #6bf007;
}
.faq-item details .faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* ----- Blog Cards ----- */
.blog-card {
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.blog-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ----- Form Wizard ----- */
.progress-bar {
  height: 4px;
  border-radius: 9999px;
  background: var(--border-color);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6bf007, #4eb205);
  transition: width 0.4s ease;
}
.form-option {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary, #0f0f0f);
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.form-option:hover,
.form-option.selected {
  background: rgba(107, 240, 7, 0.12);
  border-color: rgba(107, 240, 7, 0.35);
  color: #4eb205;
}
.form-input {
  width: 100%;
  background: var(--border-color);
  border: 1px solid var(--border-md);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  border-color: rgba(107, 240, 7, 0.5);
}
textarea.form-input {
  resize: none;
  min-height: 100px;
}

/* Step animation */
.step-enter {
  opacity: 0;
  transform: translateX(20px);
}
.step-exit {
  opacity: 0;
  transform: translateX(-20px);
}
.step-active {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* ----- Section BG helpers ----- */
.bg-primary {
  background: var(--bg-primary);
}
.bg-secondary {
  background: var(--bg-secondary);
}

/* Subtle grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ----- Glow blobs ----- */
.glow-green-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(107, 240, 7, 0.07) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}
.glow-green-right {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: min(500px, 60vw);
  height: min(500px, 60vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(107, 240, 7, 0.08) 0%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
}

/* ----- Comparison Section ----- */
.compare-bad {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.12);
}
.compare-good {
  background: rgba(107, 240, 7, 0.06);
  border: 1px solid rgba(107, 240, 7, 0.2);
}

/* ----- Metric card gradient text ----- */
.metric-value {
  background: linear-gradient(135deg, var(--text-primary) 0%, #6bf007 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Manifesto scale-in ----- */
.manifesto-inner {
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100svh;
  }
}

/* ----- Badge / chip ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
}

/* ----- Sector list rows ----- */
.sector-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.sector-row:hover {
  background: rgba(107, 240, 7, 0.04);
  border-color: rgba(107, 240, 7, 0.2);
}
.sector-row .sector-arrow {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #6bf007;
  font-size: 20px;
}
.sector-row:hover .sector-arrow {
  opacity: 1;
}

/* ----- Top border glow line ----- */
.border-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107, 240, 7, 0.6),
    transparent
  );
  pointer-events: none;
}
.border-glow-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(107, 240, 7, 0.6),
    transparent
  );
  pointer-events: none;
}

/* ----- Partners fade edges ----- */

/* ----- Footer CTA ----- */
.footer-cta {
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(107, 240, 7, 0.12) 0%,
    rgba(107, 240, 7, 0.04) 100%
  );
  border: 1px solid rgba(107, 240, 7, 0.2);
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(107, 240, 7, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ----- Hero page (inner pages) ----- */
.page-hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background: var(--bg-primary);
}
@media (min-width: 768px) {
  .page-hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
  }
}

/* ----- Form step slide ----- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.slide-in {
  animation: slideIn 0.25s ease forwards;
}
