/* ============================================================
   Elevon — warm editorial studio
   Palette derived from the logo: terracotta on cream.
   ============================================================ */

:root {
  /* Renkler — logodan */
  --cream:      #f5f0e6;   /* ana zemin (sıcak kağıt) */
  --cream-2:    #efe8db;   /* biraz daha derin */
  --paper:      #fcf9f1;   /* kartlar / açık yüzeyler */
  --terra:      #c0483a;   /* birincil — logo kırmızısı */
  --terra-deep: #9c3729;   /* koyu ton (hover) */
  --terra-soft: #e7cfc4;   /* açık ten */
  --ink:        #2a211c;   /* başlıklar (espresso) */
  --ink-2:      #6b5d53;   /* gövde metni */
  --ink-3:      #9a8c80;   /* en soluk */
  --line:       rgba(42, 33, 28, 0.12);
  --line-2:     rgba(42, 33, 28, 0.07);

  /* Tipografi */
  --display: "Roboto", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans:  "Roboto", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "Roboto Mono", ui-monospace, "SF Mono", monospace;

  /* Hareket */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Yumuşak, dağınık gölgeler (sert değil) */
  --shadow-sm: 0 1px 2px rgba(42, 33, 28, 0.04), 0 6px 16px -8px rgba(42, 33, 28, 0.10);
  --shadow-md: 0 2px 6px rgba(42, 33, 28, 0.05), 0 24px 48px -24px rgba(42, 33, 28, 0.20);
  --shadow-lg: 0 4px 12px rgba(42, 33, 28, 0.06), 0 50px 90px -40px rgba(42, 33, 28, 0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* zemin dokusu — sabit, tıklanamaz film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--terra); color: var(--paper); }

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

/* ---------------- Ortak tipografi ---------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(192, 72, 58, 0.05);
}

.section__title, .hero__title, .footer__title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}
.hero__title em, .section__title em, .footer__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--terra);
}

/* ---------------- Butonlar (ada + buton-içinde-buton) ---------------- */
.btn {
  --pad: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 13px 13px 22px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.btn__i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 100px;
  font-size: 14px;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--terra);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(192, 72, 58, 0.6);
}
.btn--primary .btn__i { background: rgba(255, 255, 255, 0.16); }
.btn--primary:hover { background: var(--terra-deep); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 16px 30px -10px rgba(156, 55, 41, 0.65); }
.btn--primary:hover .btn__i { background: rgba(255, 255, 255, 0.24); transform: translate(3px, -2px); }

.btn--ghost {
  background: rgba(252, 249, 241, 0.6);
  color: var(--ink);
  border-color: var(--line);
  padding: 9px 9px 9px 18px;
  font-size: 14px;
  backdrop-filter: blur(8px);
}
.btn--ghost .btn__i { background: rgba(42, 33, 28, 0.06); width: 26px; height: 26px; }
.btn--ghost:hover { background: var(--paper); box-shadow: var(--shadow-sm); }
.btn--ghost:hover .btn__i { background: var(--terra); color: var(--paper); transform: translate(2px, -2px); }

.btn--text {
  background: transparent;
  color: var(--ink-2);
  padding: 13px 6px;
  gap: 8px;
}
.btn--text:hover { color: var(--terra); }

.btn--lg { font-size: 17px; padding: 17px 17px 17px 28px; }
.btn--lg .btn__i { width: 36px; height: 36px; font-size: 16px; }

/* ---------------- Navigasyon (yüzen cam ada) ---------------- */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 9px 9px 9px 18px;
  border-radius: 100px;
  background: rgba(252, 249, 241, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease), background 0.5s var(--ease), top 0.5s var(--ease);
}
.nav.is-scrolled { box-shadow: var(--shadow-md); background: rgba(252, 249, 241, 0.82); top: 12px; }

.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { display: block; border-radius: 7px; }
.nav__word { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 22px; }
.nav__links a {
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------------- Genel bölüm düzeni ---------------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(90px, 14vw, 170px) 28px;
}
.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head .eyebrow { margin-bottom: 22px; }
.section__title { font-size: clamp(34px, 6vw, 62px); }
.section__lead { margin: 22px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 540px; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px 28px 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -20%; right: -10%;
  background: radial-gradient(circle, rgba(192, 72, 58, 0.10), transparent 62%);
  pointer-events: none;
  transition: transform 0.6s var(--ease-out);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero__copy { max-width: 620px; }
.hero__copy .eyebrow { margin-bottom: 28px; }
.hero__title { font-size: clamp(46px, 8.5vw, 92px); margin: 0; }
.hero__sub {
  margin: 30px 0 0;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
}
.hero__actions { display: flex; align-items: center; gap: 14px; margin-top: 42px; flex-wrap: wrap; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 1000px; }
.cube-wrap {
  width: min(440px, 82%);
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(156, 55, 41, 0.14));
}
.cube { width: 100%; height: auto; transition: transform 0.5s var(--ease-out); transform-style: preserve-3d; }
.cube line { stroke: var(--terra); stroke-width: 7; stroke-linecap: round; }

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

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-line {
  display: block;
  width: 1px; height: 54px;
  background: linear-gradient(var(--terra), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--terra);
  animation: scrolldot 2.2s var(--ease) infinite;
}
@keyframes scrolldot { to { top: 100%; } }

/* ---------------- Ürün kartları (double-bezel) ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* dış kabuk */
.card {
  position: relative;
  text-align: left;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(252, 249, 241, 0.9), rgba(239, 232, 219, 0.6));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
/* iç çekirdek */
.card__core {
  border-radius: 23px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  padding: 14px;
  overflow: hidden;
}
/* mini pencere önizleme */
.card__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
  aspect-ratio: 16 / 10;
}
.card__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 1s var(--ease-out);
}
.card__glyph {
  position: absolute;
  top: 12px; left: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(252, 249, 241, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--terra);
  box-shadow: var(--shadow-sm);
}
.card__glyph svg { width: 22px; height: 22px; }
.card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 8px 8px; }
.card__name { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 4px; }
.card__desc { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.card__go {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 100px;
  display: grid; place-items: center;
  background: rgba(42, 33, 28, 0.05);
  color: var(--ink);
  font-size: 15px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:hover .card__frame img { transform: scale(1.05); }
.card:hover .card__go { background: var(--terra); color: var(--paper); transform: translate(3px, -3px); }
.card:focus-visible { outline: none; box-shadow: var(--shadow-md), 0 0 0 3px rgba(192, 72, 58, 0.4); }

/* ---------------- Yetenekler ---------------- */
.section--caps {
  background:
    linear-gradient(180deg, transparent, rgba(239, 232, 219, 0.5), transparent);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.section--caps .section__head { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 28px; }
.caps {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap {
  padding: 34px 30px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.cap:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cap__glyph {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--terra);
  background: rgba(192, 72, 58, 0.07);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.cap__glyph svg { width: 26px; height: 26px; }
.cap__n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; display: block; margin-bottom: 10px; }
.cap h3 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 10px; letter-spacing: -0.01em; }
.cap p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------------- Trust & security ---------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust__item {
  padding: 6px 44px;
  border-left: 1px solid var(--line);
}
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__badge {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--terra);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.trust__badge svg { width: 28px; height: 28px; }
.trust__item h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; }
.trust__item p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; max-width: 32ch; }

/* ---------------- Footer / iletişim ---------------- */
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) 28px 48px;
}
.footer__cta {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 96px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 26px;
}
.footer__title { font-size: clamp(34px, 6.5vw, 68px); max-width: 15ch; margin: 0; }
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(60px, 9vw, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; font-weight: 500; }
.footer__brand img { border-radius: 6px; }
.footer__meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.03em; }

/* ============================================================
   Önizleme modalı — açık pencere
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(42, 33, 28, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.4s var(--ease);
}
.win {
  position: relative;
  width: min(1040px, 92vw);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: pop 0.55s var(--ease);
}
.win__bar {
  display: flex; align-items: center; gap: 12px;
  height: 48px; flex: none;
  padding: 0 15px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.win__dots { display: flex; gap: 8px; }
.win__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.win__dots i:first-child { background: var(--terra); }
.win__addr {
  flex: 1; text-align: center; max-width: 62%;
  margin: 0 auto;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 5px 12px; border-radius: 8px;
  background: rgba(42, 33, 28, 0.04);
}
.win__close {
  flex: none; width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.win__close svg { width: 18px; height: 18px; }
.win__close:hover { background: rgba(42, 33, 28, 0.07); color: var(--ink); }
.win__body { min-height: 0; background: var(--cream-2); display: flex; }
.win__shot {
  display: block; width: 100%; height: auto;
  max-height: calc(92dvh - 156px);
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.win__shot.is-loaded { opacity: 1; }
.win__foot {
  flex: none; display: flex; align-items: center; gap: 24px;
  padding: 18px 22px; background: var(--paper);
  border-top: 1px solid var(--line);
}
.win__meta { flex: 1; min-width: 0; }
.win__name { font-family: var(--display); font-weight: 500; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.win__desc { margin: 5px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.95) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__art { grid-row: 1; min-height: 240px; margin-bottom: 8px; }
  .cube-wrap { width: min(300px, 62%); }
  .hero { padding-top: 120px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .caps { grid-template-columns: 1fr; max-width: 460px; }
  .trust { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 14px; }
  .trust__item {
    display: block;
    padding: 30px 28px;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-sm);
  }
  .trust__item:first-child { border-left: 1px solid var(--line-2); padding-left: 28px; }
  .trust__badge { margin: 0 0 22px; width: 50px; height: 50px; }
  .trust__item p { max-width: none; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .section, .hero, .footer { padding-left: 20px; padding-right: 20px; }
  .caps, .section--caps .section__head { padding-left: 20px; padding-right: 20px; }
  .win__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .win__foot .btn { justify-content: center; }
  .footer__bar { justify-content: center; text-align: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .cube-wrap { animation: none; }
}
