/* ==========================================================================
   EVRENBIL – ANA SAYFA (EDITORIAL / STUDIO TASARIM)
   ========================================================================== */

.ev {
  --ink: #0b1020;
  --ink-2: #1a2138;
  --paper: #f4f2ee;
  --paper-2: #ebe8e1;
  --line: rgba(11, 16, 32, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);
  --muted: #5b6275;
  --accent: #1f4fff;
  --accent-soft: #dfe6ff;
  --mint: #b8f0d8;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: clip;
}

.ev *,
.ev *::before,
.ev *::after { box-sizing: border-box; }

.ev a { color: inherit; text-decoration: none; }
.ev h1, .ev h2, .ev h3, .ev h4 { color: inherit; margin: 0; letter-spacing: -0.03em; }
.ev p { margin: 0; }
.ev em, .ev .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.ev-wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }

.ev-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.ev-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.ev-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--ink);
  font: 600 15px/1 var(--sans); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), transform .3s var(--ease);
  background: transparent; color: var(--ink);
}
.ev-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease);
}
.ev-btn:hover { color: var(--paper); }
.ev-btn:hover::before { transform: translateY(0); }
.ev-btn--solid { background: var(--ink); color: var(--paper); }
.ev-btn--solid::before { background: var(--accent); }
.ev-btn--light { border-color: var(--paper); color: var(--paper); }
.ev-btn--light::before { background: var(--paper); }
.ev-btn--light:hover { color: var(--ink); }
.ev-btn svg { transition: transform .4s var(--ease); }
.ev-btn:hover svg { transform: translateX(4px) rotate(-45deg); }

/* ---------- Reveal animations ---------- */
.ev-r { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.ev-r.in { opacity: 1; transform: none; }

.ev-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.ev-split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.ev-split.in .w > span { transform: none; }

.ev-line { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); height: 1px; background: var(--line); }
.ev-line.in { transform: scaleX(1); }

/* ==========================================================================
   HERO
   ========================================================================== */
.ev-hero { position: relative; padding: 48px 0 80px; min-height: calc(100vh - 96px); display: flex; flex-direction: column; justify-content: center; }
.ev-hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 70%);
}
.ev-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 48px; position: relative; }
.ev-hero__status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.ev-hero__status i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: ev-pulse 2s infinite; }
@keyframes ev-pulse { 70% { box-shadow: 0 0 0 10px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.ev-hero__title { position: relative; font-size: clamp(48px, 9.2vw, 152px); line-height: .92; font-weight: 700; letter-spacing: -0.055em; }
.ev-hero__title em { color: var(--accent); }
.ev-hero__title .ev-pill-inline {
  display: inline-block; vertical-align: middle; width: 1.6em; height: .78em; border-radius: 999px; margin: 0 .08em;
  background: url('/images/tablet.png') center/cover, var(--ink); position: relative; top: -.06em;
}

.ev-hero__bottom { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 48px; align-items: end; margin-top: 64px; position: relative; }
.ev-hero__lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.ev-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ev-scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ev-scroll-cue span { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.ev-scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: ev-drop 2s var(--ease) infinite; }
@keyframes ev-drop { to { top: 100%; } }

/* floating orbit shapes */
.ev-orbit { position: absolute; right: 4%; top: 14%; width: 220px; height: 220px; pointer-events: none; }
.ev-orbit__ring { position: absolute; inset: 0; border: 1px dashed var(--line); border-radius: 50%; animation: ev-spin 30s linear infinite; }
.ev-orbit__dot { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ev-orbit__core { position: absolute; inset: 34%; border-radius: 50%; background: var(--mint); animation: ev-float 6s ease-in-out infinite; }
@keyframes ev-spin { to { transform: rotate(360deg); } }
@keyframes ev-float { 50% { transform: translateY(-12px) scale(1.05); } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.ev-marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--paper); }
.ev-marquee__track { display: flex; gap: 64px; width: max-content; animation: ev-marquee 38s linear infinite; }
.ev-marquee:hover .ev-marquee__track { animation-play-state: paused; }
.ev-marquee__item { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; opacity: .75; transition: opacity .3s; }
.ev-marquee__item:hover { opacity: 1; }
.ev-marquee__item img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; filter: grayscale(1); transition: filter .3s; }
.ev-marquee__item:hover img { filter: none; }
.ev-marquee__sep { font-family: var(--serif); font-size: 28px; color: var(--accent); }
@keyframes ev-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   ABOUT / STATS
   ========================================================================== */
.ev-section { padding: 140px 0; position: relative; }
.ev-section__head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; margin-bottom: 80px; align-items: end; }
.ev-h2 { font-size: clamp(36px, 5.4vw, 80px); line-height: 1; font-weight: 700; }
.ev-h2 em { color: var(--accent); }
.ev-section__desc { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 520px; }

.ev-about__statement { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; max-width: 1100px; }
.ev-about__statement .hl { color: var(--muted); transition: color .6s var(--ease); }
.ev-about__statement .hl.in { color: var(--ink); }

.ev-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-top: 1px solid var(--line); }
.ev-stat { padding: 36px 28px 0 0; border-right: 1px solid var(--line); }
.ev-stat + .ev-stat { padding-left: 28px; }
.ev-stat:last-child { border-right: 0; }
.ev-stat__num { font-size: clamp(44px, 5vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.ev-stat__num sup { font-size: .4em; color: var(--accent); top: -1.2em; margin-left: 2px; }
.ev-stat__label { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   PRODUCTS (DARK)
   ========================================================================== */
.ev-dark { background: var(--ink); color: var(--paper); border-radius: 40px 40px 0 0; }
.ev-dark .ev-eyebrow, .ev-dark .ev-section__desc { color: rgba(244, 242, 238, .6); }
.ev-dark .ev-h2 em { color: var(--mint); }

.ev-tabs { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--line-light); border-radius: 999px; margin-bottom: 48px; position: relative; }
.ev-tab { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; border: 0; background: transparent; color: rgba(244,242,238,.65); font: 600 14px var(--sans); cursor: pointer; transition: color .4s var(--ease); }
.ev-tab.active { color: var(--ink); }
.ev-tabs__glider { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--paper); transition: transform .5s var(--ease), width .5s var(--ease); }

.ev-panel { display: none; }
.ev-panel.active { display: block; animation: ev-fade .7s var(--ease); }
@keyframes ev-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.ev-plist { border-top: 1px solid var(--line-light); }
.ev-prow {
  position: relative; display: grid; grid-template-columns: 80px 1.2fr 1.6fr 56px; gap: 32px; align-items: center;
  padding: 34px 8px; border-bottom: 1px solid var(--line-light); cursor: pointer; overflow: hidden;
}
.ev-prow::before {
  content: ""; position: absolute; inset: 0; background: var(--ink-2); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease); z-index: 0;
}
.ev-prow:hover::before { transform: scaleY(1); }
.ev-prow > * { position: relative; z-index: 1; }
.ev-prow__idx { font-size: 13px; color: rgba(244,242,238,.45); font-variant-numeric: tabular-nums; }
.ev-prow__name { display: flex; align-items: center; gap: 18px; font-size: clamp(26px, 3vw, 44px); font-weight: 600; letter-spacing: -0.035em; transition: transform .6s var(--ease); }
.ev-prow:hover .ev-prow__name { transform: translateX(14px); }
.ev-prow__name img { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--paper); }
.ev-prow__cat { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.ev-prow__desc { color: rgba(244,242,238,.65); font-size: 15px; line-height: 1.6; }
.ev-prow__arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .4s var(--ease), color .4s, transform .5s var(--ease); }
.ev-prow:hover .ev-prow__arrow { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }

/* floating preview image following cursor */
.ev-preview {
  position: fixed; top: 0; left: 0; width: 340px; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; pointer-events: none; z-index: 50;
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .35s var(--ease), transform .5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); background: var(--paper);
}
.ev-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.ev-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   SHOWCASE (sticky stacked cards)
   ========================================================================== */
.ev-showcase { padding: 0 0 140px; background: var(--ink); color: var(--paper); }
.ev-stack { display: grid; gap: 0; }
.ev-card {
  position: sticky; top: 110px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center;
  min-height: 520px; padding: 56px; border-radius: 32px; margin-bottom: 40px; overflow: hidden;
  transform-origin: center top; will-change: transform;
}
.ev-card:nth-child(1) { background: var(--paper); color: var(--ink); }
.ev-card:nth-child(2) { background: var(--accent-soft); color: var(--ink); top: 130px; }
.ev-card:nth-child(3) { background: var(--mint); color: var(--ink); top: 150px; }
.ev-card__tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.ev-card__title { font-size: clamp(34px, 4vw, 60px); line-height: 1; font-weight: 700; margin: 18px 0 20px; }
.ev-card__text { font-size: 17px; line-height: 1.65; opacity: .75; max-width: 440px; }
.ev-card__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.ev-card__list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ev-card__list li::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.ev-card__media { position: relative; height: 100%; min-height: 380px; border-radius: 20px; overflow: hidden; background: rgba(11,16,32,.06); }
.ev-card__media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; object-position: top left; will-change: transform; }

/* ==========================================================================
   INTEGRATIONS (bento)
   ========================================================================== */
.ev-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 16px; }
.ev-tile {
  position: relative; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.ev-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11,16,32,.35); }
.ev-tile h3 { font-size: 26px; font-weight: 600; }
.ev-tile p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.ev-tile__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ev-tile--a { grid-column: span 3; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: transparent; }
.ev-tile--a p, .ev-tile--a .ev-tile__k { color: rgba(244,242,238,.6); }
.ev-tile--a h3 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; }
.ev-tile--b { grid-column: span 3; background: var(--accent); color: #fff; border-color: transparent; }
.ev-tile--b p, .ev-tile--b .ev-tile__k { color: rgba(255,255,255,.75); }
.ev-tile--c { grid-column: span 2; }
.ev-tile--d { grid-column: span 1; background: var(--mint); border-color: transparent; align-items: center; justify-content: center; }
.ev-tile--d span { font-family: var(--serif); font-style: italic; font-size: 64px; }

.ev-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 13px; transition: background .3s, color .3s; }
.ev-chip:hover { background: var(--paper); color: var(--ink); }

.ev-blob { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; background: var(--accent); opacity: .9; animation: ev-morph 12s ease-in-out infinite; }
@keyframes ev-morph {
  33% { border-radius: 63% 37% 37% 63% / 43% 61% 39% 57%; transform: rotate(40deg); }
  66% { border-radius: 38% 62% 55% 45% / 62% 36% 64% 38%; transform: rotate(-20deg); }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.ev-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ev-post { display: block; cursor: pointer; }
.ev-post__img { aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; background: var(--paper-2); margin-bottom: 22px; }
.ev-post__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.ev-post:hover .ev-post__img img { transform: scale(1.08); }
.ev-post__meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; margin-bottom: 10px; }
.ev-post__title { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); display: inline; }
.ev-post:hover .ev-post__title { background-size: 100% 1px; }

/* ==========================================================================
   CTA
   ========================================================================== */
.ev-cta { padding: 160px 0 140px; text-align: center; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.ev-cta__big { font-size: clamp(56px, 12vw, 200px); line-height: .9; font-weight: 700; letter-spacing: -0.06em; }
.ev-cta__big em { color: var(--mint); }
.ev-cta p { color: rgba(244,242,238,.6); font-size: 18px; margin: 32px auto 44px; max-width: 520px; line-height: 1.6; }
.ev-cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ev-cta__circle {
  position: absolute; width: 140px; height: 140px; right: 8%; top: 18%;
  animation: ev-spin 18s linear infinite;
}
.ev-cta__circle text { fill: rgba(244,242,238,.5); font: 600 11px var(--sans); letter-spacing: .3em; text-transform: uppercase; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .ev-hero__bottom { grid-template-columns: 1fr; gap: 32px; }
  .ev-scroll-cue, .ev-orbit { display: none; }
  .ev-section__head { grid-template-columns: 1fr; gap: 24px; }
  .ev-stats { grid-template-columns: repeat(2, 1fr); }
  .ev-stat { padding: 28px 16px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .ev-prow { grid-template-columns: 1fr 48px; gap: 16px; }
  .ev-prow__idx, .ev-prow__desc { display: none; }
  .ev-card { grid-template-columns: 1fr; padding: 32px; position: relative; top: 0 !important; }
  .ev-card__media { min-height: 260px; }
  .ev-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .ev-tile { grid-column: span 2 !important; grid-row: auto !important; min-height: 200px; }
  .ev-posts { grid-template-columns: 1fr; }
  .ev-preview { display: none; }
}
@media (max-width: 640px) {
  .ev-section { padding: 90px 0; }
  .ev-hero { padding-top: 64px; }
  .ev-hero__top { flex-direction: column; align-items: flex-start; }
  .ev-tabs { flex-wrap: wrap; border-radius: 20px; }
  .ev-tabs__glider { display: none; }
  .ev-tab.active { background: var(--paper); }
  .ev-dark { border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ev *, .ev *::before, .ev *::after { animation: none !important; transition: none !important; }
  .ev-r, .ev-split .w > span { opacity: 1 !important; transform: none !important; }
}
