/* ============================================
   Better-UI-UX — efecto.app style
   ============================================ */

:root {
  --background: #09090b;
  --foreground: #F5F4F1;
  --card: #141414;
  --card-foreground: #F5F4F1;
  --muted: #1C1C1D;
  --muted-foreground: #9B9893;
  --border: #27272a;
  --primary: #F5F4F1;
  --primary-foreground: #09090b;
  --accent: #FF7A52;
  --accent-foreground: #09090b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Text selection — grimsi */
::selection { background: #3f3f46; color: #F5F4F1; }
::-moz-selection { background: #3f3f46; color: #F5F4F1; }

/* Scrollbar — 1px, black, no arrows */
::-webkit-scrollbar { width: 1px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #000; }
::-webkit-scrollbar-button { display: none; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #09090b;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

code, pre { font-family: 'JetBrains Mono', monospace; }
a { color: inherit; text-decoration: none; }

/* Container */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

/* Hero wrapper — 1cm gap on top, inset like efecto */
.hero-section {
  padding: 38px 12px 12px 12px; /* ~1cm top gap */
  max-width: 81.5rem; /* 1cm shorter long edge: 84rem - 2.5rem */
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero-section { padding: 38px 16px 16px 16px; }
}

/* ============================================
   BUTTONS — efecto style (rounded ~8px)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background-color: rgba(11, 11, 12, 0.6);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

.donate-btn:hover { background-color: rgba(11, 11, 12, 0.6); }

/* ============================================
   HERO — Single large rounded hero card (efecto style)
   Moderate panoramic — rebalanced after feedback
   ============================================ */
.hero-card {
  position: relative;
  width: 100%;
  min-height: 478px; /* 440 + 1cm */
  aspect-ratio: 16 / 9;
  max-height: 598px; /* 560 + 1cm */
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-card {
    min-height: 518px; /* 480 + 1cm */
    aspect-ratio: 18 / 9;
    max-height: 578px; /* 540 + 1cm */
  }
}

@media (min-width: 1024px) {
  .hero-card {
    min-height: 558px; /* 520 + 1cm */
    aspect-ratio: 18 / 9;
    max-height: 598px; /* 560 + 1cm */
  }
}

/* Background image filling the entire hero card */
.hero-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Dark gradient overlay on left to ensure high text contrast */
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 11, 12, 0.88) 0%,
    rgba(11, 11, 12, 0.70) 42%,
    rgba(11, 11, 12, 0.25) 75%,
    rgba(11, 11, 12, 0.05) 100%
  );
}

@media (max-width: 767px) {
  .hero-card-overlay {
    background: linear-gradient(
      to bottom,
      rgba(11, 11, 12, 0.85) 0%,
      rgba(11, 11, 12, 0.75) 60%,
      rgba(11, 11, 12, 0.4) 100%
    );
  }
}

/* Overlaid text content on left side */
.hero-card-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.75rem;
  max-width: 38rem;
}

@media (min-width: 768px) {
  .hero-card-content {
    padding: 3.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-card-content {
    padding: 4.5rem 4rem;
  }
}

.hero-heading {
  font-family: 'DynaPuff', sans-serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-heading em {
  font-style: italic;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Terminal box — transparent frosted style */
.terminal-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 15, 18, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.625rem;
  padding: 0.75rem 1.25rem;
  max-width: fit-content;
}

.terminal-command {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.terminal-command code {
  font-size: 0.8125rem;
  color: var(--foreground);
}

.terminal-command .dollar {
  color: var(--muted-foreground);
  user-select: none;
}

.terminal-copy {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  transition: color 0.2s;
}
.terminal-copy:hover { color: var(--foreground); }
.terminal-copy svg { width: 1rem; height: 1rem; }

/* ============================================
   SECTION (shared)
   ============================================ */
.section {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

/* ============================================
   FEATURES — numbered list, centered
   ============================================ */
.features-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.feature-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.75rem;
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-body h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.feature-body p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 36rem;
  line-height: 1.65;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--muted);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ============================================
   IMAGE SHOWCASE
   ============================================ */
.showcase {
  padding: 2rem 0;
}

.showcase-frame {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ============================================
   INSTALL
   ============================================ */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.install-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.install-step-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.install-step-code {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.install-step-code code {
  display: block;
  font-size: 0.8125rem;
  color: var(--foreground);
  white-space: pre-wrap;
  word-break: break-all;
}

.install-step .terminal-copy {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ============================================
   START DESIGNING (CTA)
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.75);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  max-width: 24rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--foreground); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-404 img {
  max-width: 24rem;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.page-404 h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.page-404 p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* GSAP helpers */
.gsap-fade-up { opacity: 0; transform: translateY(24px); }
.gsap-scale-in { opacity: 0; transform: scale(0.96); }

/* ============================================
   DONATE — click: Soon drops from 2cm above (76px)
   No font/box/color change — same style, only drop animation
   ============================================ */
.donate-btn,
.footer-donate-btn {
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

.donate-btn .donate-text,
.footer-donate-btn .donate-text {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.donate-btn .donate-soon,
.footer-donate-btn .donate-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-76px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  /* inherit font/color — no change */
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* active state — Donate slides down, Soon drops in */
.donate-btn.is-soon .donate-text,
.footer-donate-btn.is-soon .donate-text {
  transform: translateY(76px);
  opacity: 0;
}

.donate-btn.is-soon .donate-soon,
.footer-donate-btn.is-soon .donate-soon {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* footer link keeps same typography as other footer links */
.footer-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  cursor: pointer;
  user-select: none;
}

/* ============================================
   LICENSE MODAL — özel ekran
   ============================================ */
.license-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.license-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.license-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.license-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  max-height: 88vh;
  overflow: auto;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: #27272a transparent;
}
.license-modal.is-open .license-panel {
  transform: translateY(0) scale(1);
}
.license-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.license-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.license-copy {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.license-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #d4d4d8;
}
.license-body p { color: #d4d4d8; }
.license-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.license-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.license-close:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--foreground);
  border-color: rgba(255, 255, 255, 0.14);
}
body.license-open { overflow: hidden; }

/* ============================================
   SHOWCASE — proportional shrink with quality preserved
   GPU layer, no bitmap resample degradation
   ============================================ */
.showcase-frame {
  will-change: transform, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.showcase-frame img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
}
