/* ============================================================
   FİTRİNE — "Runway Grid" design system
   Sharp editorial fashion-tech: 1.5px black rules, zero radius,
   no shadows, one blue accent. (Design handoff: hifi tokens.)
   Fonts (per page <link>): Space Grotesk / IBM Plex Mono / Instrument Sans
   NOTE: never use text-transform:uppercase (Turkish İ problem) —
   labels are written in caps at the source.
   ============================================================ */
:root {
  --bg: #fafaf8;
  --ink: #111;
  --accent: #2340c8;
  --text-2: #444;
  --text-3: #555;
  --faint: #777;
  --faint-2: #999;
  --hover-bg: #f1f0ec;
  --accent-bg: #eef0fb;
  --hairline: #e5e3dd;
  --rule: 1.5px solid var(--ink);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Instrument Sans', sans-serif;
  /* ŞAFAK layer: human-warmth terracotta + dawn gradients.
     Blue = trust anchor, peach/coral = attraction (color-psychology pass). */
  --warm: #d97b52;
  --warm-ink: #b0522b;   /* small warm text: keeps 4.5:1 on --bg */
  --warm-bg: #faeee5;
  /* roles inside ink contrast blocks (ticker, PRO cell, catalog CTA) */
  --on-ink: #ddd;
  --on-ink-muted: #aaa;
  --on-ink-rule: #333;
  --dawn: linear-gradient(115deg, #fdf7ef 0%, #fbeadd 28%, #f5e8ef 55%, #e9ecfb 82%, #e3e9fc 100%);
  --dawn-text: linear-gradient(94deg, #2340c8 0%, #7a5bd6 46%, #c8622f 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.fitrine {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.fitrine a { color: var(--ink); text-decoration: none; }
body.fitrine a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }

/* ---------------------------------------------------------- keyframes */
@keyframes fitMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fitHeroFade { 0% { opacity: 1; } 27% { opacity: 1; } 36% { opacity: 0; } 91% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fitKen { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes fitWipe { 0%, 10% { clip-path: inset(0 0 0 0); } 45%, 58% { clip-path: inset(0 0 0 100%); } 88%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes fitWipeLine { 0%, 10% { left: 0%; } 45%, 58% { left: 100%; } 88%, 100% { left: 0%; } }
@keyframes fitPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------- nav */
.f-nav {
  display: flex;
  align-items: stretch;
  border-bottom: var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.f-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 20px clamp(16px, 2.2vw, 32px);
  border-right: var(--rule);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.f-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  padding: 0 clamp(14px, 2.2vw, 36px);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.06em;
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.f-nav-links::-webkit-scrollbar { display: none; }
.f-nav-links a.active { color: var(--accent); }
/* Language selector: globe trigger + endonym dropdown (industry pattern —
   native names, no flags, no bare codes; logical sides so RTL just works) */
.f-lang {
  position: relative;
  display: flex;
  align-items: stretch;
  border-inline-start: var(--rule);
  white-space: nowrap;
}
.f-lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(12px, 1.6vw, 20px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.f-lang summary::-webkit-details-marker { display: none; }
.f-lang summary::after { content: '▾'; font-size: 10px; color: var(--faint); }
.f-lang[open] summary, .f-lang summary:hover { background: var(--hover-bg); }
.f-lang svg { flex: none; }
.f-lang-menu {
  position: absolute;
  top: 100%;
  inset-inline-end: -1.5px;
  z-index: 60;
  min-width: 168px;
  background: var(--bg);
  border: var(--rule);
  display: flex;
  flex-direction: column;
}
.f-lang-menu a {
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1.5px solid var(--hairline);
}
.f-lang-menu a:last-child { border-bottom: none; }
.f-lang-menu a:hover { background: var(--hover-bg); }
.f-lang-menu a.active { color: var(--accent); pointer-events: none; }
/* Arabic-script endonyms: spacing breaks cursive joining */
.f-lang summary span[lang="ar"], .f-lang summary span[lang="fa"],
.f-lang-menu a[lang="ar"], .f-lang-menu a[lang="fa"] { letter-spacing: 0; }

/* Mobile hamburger (assembled by fitrine.js from the real nav links) */
.f-burger { display: none; }
@media (max-width: 900px) {
  .f-nav .f-nav-links, .f-nav .f-nav-login { display: none; }
  .f-lang summary span { display: none; } /* globe + caret only */
  .f-burger { display: flex; align-items: stretch; border-inline-start: var(--rule); }
  .f-burger summary {
    display: flex; align-items: center; justify-content: center;
    min-width: 52px; padding: 0 14px; cursor: pointer; list-style: none; color: var(--ink);
  }
  .f-burger summary::-webkit-details-marker { display: none; }
  .f-burger[open] summary { background: var(--ink); color: #fff; }
  .f-burger-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
    background: var(--bg); border-bottom: var(--rule);
    display: flex; flex-direction: column;
  }
  .f-burger-menu a {
    display: flex; align-items: center; min-height: 48px; padding: 0 24px;
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
    color: var(--ink); border-bottom: 1.5px solid var(--hairline);
  }
  .f-burger-menu a:last-child { border-bottom: none; }
  .f-burger-menu a.active { color: var(--accent); }
  /* touch-target comfort on small screens */
  .f-footer-links a { padding: 7px 0; }
  .fitrine .billing-toggle button { padding: 15px 24px; }
}
.f-nav-login {
  display: flex;
  align-items: center;
  padding: 0 clamp(14px, 2vw, 26px);
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s;
}
.f-nav-login:hover { background: var(--ink); color: #fff !important; }

.f-nav-cta {
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #fff !important;
  padding: 0 clamp(16px, 2.8vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s;
}
.f-nav-cta:hover { background: var(--accent); color: #fff !important; }

/* ---------------------------------------------------------- type utils */
.f-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.f-eyebrow .pulse { animation: fitPulse 2s ease-in-out infinite; }
.f-mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.f-mono-note { font-family: var(--font-mono); font-size: 13px; color: var(--faint); letter-spacing: 0.06em; }
.f-accent { color: var(--accent); }

.f-h-hero { font-family: var(--font-display); font-size: clamp(54px, 8.5vw, 108px); line-height: 0.96; font-weight: 700; letter-spacing: -0.035em; }
.f-h-page { font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); line-height: 0.96; font-weight: 700; letter-spacing: -0.03em; }
.f-h-section { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; letter-spacing: -0.02em; }
.f-h-cta { font-family: var(--font-display); font-size: clamp(44px, 6.5vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.f-h-card { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.f-body { font-size: 15px; line-height: 1.6; color: var(--text-3); }
.f-lead { font-size: 18px; line-height: 1.65; color: var(--text-2); }

/* ---------------------------------------------------------- buttons */
.f-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 20px 40px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  touch-action: manipulation;
}
.f-btn-accent { background: var(--accent); color: #fff !important; }
.f-btn-accent:hover { background: var(--ink); color: #fff !important; }
.f-btn-accent-inv:hover { background: #fff; color: var(--ink) !important; }
.f-btn-outline { border: var(--rule); color: var(--ink) !important; background: transparent; }
.f-btn-outline:hover { background: var(--ink); color: #fff !important; }
.f-btn-ghost-dark { border: 1.5px solid #444; color: #fff !important; background: transparent; }
.f-btn-ghost-dark:hover { border-color: #fff; }

/* ---------------------------------------------------------- sections */
.f-section { border-bottom: var(--rule); }
.f-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 64px 56px 40px;
  flex-wrap: wrap;
}
.f-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 56px 48px;
  border-bottom: var(--rule);
  flex-wrap: wrap;
}

/* dark CTA block */
.f-cta-block {
  background: var(--ink);
  color: #fff;
  padding: 104px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.f-cta-block p { font-size: 17px; color: var(--on-ink-muted); max-width: 520px; line-height: 1.6; }

/* ---------------------------------------------------------- marquee */
.f-marquee { overflow: hidden; }
.f-marquee-track { display: flex; width: max-content; animation: fitMarquee 45s linear infinite; }
.f-marquee-track:hover { animation-play-state: paused; }
.f-marquee-cell { width: 340px; border-right: var(--rule); flex: none; }
.f-marquee-cell img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.f-marquee-cell figcaption,
.f-marquee-caption { font-family: var(--font-mono); font-size: 12px; padding: 12px 16px; border-top: var(--rule); }

/* ticker (dark) */
.f-ticker { border-bottom: var(--rule); overflow: hidden; background: var(--ink); color: #fff; }
.f-ticker-track {
  display: flex;
  gap: 56px;
  padding: 15px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  width: max-content;
  animation: fitMarquee 28s linear infinite;
}

/* ---------------------------------------------------------- image hover zoom */
.f-zoom { overflow: hidden; }
.f-zoom img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.f-zoom:hover img { transform: scale(1.06); }

/* corner badges over imagery */
.f-badge-light { position: absolute; background: var(--bg); border: var(--rule); font-family: var(--font-mono); font-size: 12px; padding: 9px 14px; letter-spacing: 0.04em; }
.f-badge-dark { position: absolute; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; padding: 9px 14px; letter-spacing: 0.04em; }

/* ---------------------------------------------------------- footer */
/* Signature fashion-site closer: an outline wordmark strip above the grid. */
.f-footer-wrap { border-top: var(--rule); background: var(--bg); }
.f-footer-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12.5vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  padding: 26px clamp(16px, 3vw, 40px) 6px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}
.f-footer-hero .fh-r { -webkit-text-stroke: 0; color: var(--accent); font-size: 0.32em; vertical-align: 0.9em; }

.f-footer { border-top: var(--rule); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; background: var(--bg); }
.f-footer-wrap .f-footer { border-top: var(--rule); }
.f-footer > div, .f-footer > nav { padding: 40px 32px; }
.f-footer > div:not(:last-child), .f-footer > nav:not(:last-child) { border-right: var(--rule); }
.f-footer-brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.f-footer-tag { font-size: 13px; color: var(--faint); margin-top: 10px; line-height: 1.6; max-width: 260px; }
.f-footer-cta {
  display: inline-block;
  margin-top: 20px;
  border: var(--rule);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.f-footer-cta:hover { background: var(--ink); color: #fff !important; }
.f-footer-mail { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.03em; }
.f-footer-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint-2); margin-bottom: 4px; }
.f-footer-links { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.f-footer-meta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.f-footer-stats { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); line-height: 2; letter-spacing: 0.05em; }
.f-footer-stats .n { color: var(--accent); font-weight: 500; }
.f-footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--faint); line-height: 1.7; }

/* ---------------------------------------------------------- FAQ */
.f-faq details { border-bottom: var(--rule); padding: 0 40px; }
.f-faq details:last-child { border-bottom: none; }
.f-faq summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.f-faq summary::-webkit-details-marker { display: none; }
.f-faq details > div { font-size: 15px; line-height: 1.7; color: var(--text-3); padding: 0 0 26px; max-width: 560px; }

/* ---------------------------------------------------------- premium interaction layer
   Micro-interaction craft (Disney principles + MD/HIG timings): press feedback,
   focus rings, staggered reveals, animated underlines. All motion is
   transform/opacity only and respects prefers-reduced-motion (global guard). */

/* Selection + focus — accessibility first */
body.fitrine ::selection { background: var(--accent); color: #fff; }
body.fitrine :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
body.fitrine .f-nav-cta:focus-visible,
body.fitrine .f-btn-accent:focus-visible { outline-color: var(--ink); }

/* Skip link (keyboard users) */
.f-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 20px;
}
.f-skip:focus { left: 0; color: #fff; }

/* Press feedback: squash on active (100ms, ease-out; no layout shift) */
.f-btn, .f-nav-cta, .filter-bar button, .billing-toggle button, .plan-cta,
.m-cta-btn, .send-btn {
  transform: translateZ(0);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 100ms ease-out;
}
.f-btn:active, .f-nav-cta:active, .filter-bar button:active,
.billing-toggle button:active, .plan-cta:active, .m-cta-btn:active,
.send-btn:active { transform: scale(0.98); }

/* Nav links: animated underline (anticipation; grows from left) */
.f-nav-links a, .f-footer-links a {
  position: relative;
}
.f-nav-links a::after, .f-footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease-out;
}
.f-nav-links a:hover::after, .f-nav-links a.active::after,
.f-footer-links a:hover::after { transform: scaleX(1); }

/* Marquee caption: secondary action on hover */
.f-marquee-cell { transition: background 0.2s; }
.f-marquee-cell:hover figcaption, .f-marquee-cell:hover .f-marquee-caption { color: var(--accent); }

/* FAQ: marker rotates open, content fades in (pose-to-pose + follow-through) */
.f-faq summary { transition: color 150ms ease-out; }
.f-faq summary:hover { color: var(--accent); }
.f-faq summary .faq-marker { display: inline-block; transition: transform 200ms ease-out; }
.f-faq details[open] summary .faq-marker { transform: rotate(90deg); color: var(--accent); }
.f-faq details[open] > div { animation: faqIn 220ms ease-out; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal: rise + fade, staggered per sibling (40ms) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms ease-out, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rv.in.d1 { transition-delay: 40ms; }
.rv.in.d2 { transition-delay: 80ms; }
.rv.in.d3 { transition-delay: 120ms; }
.rv.in.d4 { transition-delay: 160ms; }
.rv.in.d5 { transition-delay: 200ms; }

/* Hero headline: lines rise on load (staging — attention on the promise) */
.hero-line { display: block; opacity: 0; transform: translateY(26px); animation: heroRise 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-line:nth-child(2) { animation-delay: 90ms; }
.hero-line:nth-child(3) { animation-delay: 180ms; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hero-line { opacity: 1; transform: none; animation: none; }
  .tilt3d { transform: none !important; }
}

/* ---------------------------------------------------------- ŞAFAK dawn layer
   Light, airy premium: dawn gradients, serif italic accents, 3D tilt,
   luminous CTA. Nothing here darkens the page — warmth over weight. */

/* Serif italic accent (Fraunces — load per page when used) */
.f-italic { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

/* Gradient display text: trust blue → violet → terracotta */
.f-grad-text {
  background: var(--dawn-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Luminous dawn CTA — replaces the heavy ink block on light pages */
.f-cta-block.dawn { background: var(--dawn); color: var(--ink); border-top: var(--rule); }
.f-cta-block.dawn p { color: var(--text-2); }
.f-btn-ghost-ink { border: var(--rule); color: var(--ink) !important; background: transparent; }
.f-btn-ghost-ink:hover { background: var(--ink); color: #fff !important; }

/* 3D tilt cards: JS drives --rx/--ry (max ±5deg), fine pointers only */
.tilt3d {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 200ms ease-out;
  will-change: transform;
}
.tilt3d .tilt-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease-out;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 236, 220, 0.55), rgba(233, 236, 251, 0.25) 45%, transparent 70%);
  mix-blend-mode: soft-light;
}
.tilt3d:hover .tilt-sheen { opacity: 1; }

/* Count-up stats strip */
.f-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--rule); }
.f-stat { padding: 36px 32px; display: flex; flex-direction: column; gap: 8px; }
.f-stat:not(:last-child) { border-right: var(--rule); }
.f-stat .n { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.f-stat .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); }
@media (max-width: 900px) {
  .f-stats { grid-template-columns: 1fr 1fr; }
  .f-stat { border-right: none !important; border-bottom: var(--rule); padding: 24px; }
  .f-stats .f-stat:nth-last-child(-n+2) { border-bottom: none; }
  .f-stats .f-stat:nth-child(odd) { border-right: var(--rule) !important; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .f-footer { grid-template-columns: 1fr 1fr; }
  .f-footer > div, .f-footer > nav { border-right: none !important; border-bottom: var(--rule); }
  .f-footer > div:nth-child(odd), .f-footer > nav:nth-child(odd) { border-right: var(--rule) !important; }
  .f-footer > *:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 900px) {
  .f-section-head, .f-page-head { padding-left: 24px; padding-right: 24px; }
  .f-cta-block { padding: 72px 24px; }
  .f-nav-links { gap: 14px; padding: 0 14px; }
  .f-logo { padding: 16px; font-size: 20px; }
  .f-marquee-cell { width: 260px; }
}
