/* ============================================
   DOPO CREATIVE — home page styles
   ============================================ */

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.preloader-logo {
  height: 56px;
  filter: invert(1);
  animation: pulse 1.4s ease-in-out infinite;
}
.preloader-count {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.96); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 110px;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(110, 92, 240, 0.16), transparent 60%),
    linear-gradient(to bottom, transparent 50%, var(--bg) 96%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow { margin-bottom: 28px; }

.hero-title {
  font-size: clamp(52px, 9.5vw, 148px);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 440px;
  color: var(--ink-dim);
  font-size: 18px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine {
  to { top: 100%; }
}

/* ---------- sections ---------- */
section { padding: clamp(90px, 12vw, 160px) 0; }

.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-head .label { margin-bottom: 20px; }
.section-title { font-size: clamp(42px, 6.5vw, 96px); }

/* ---------- app cards ---------- */
.app-list {
  display: grid;
  gap: 28px;
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  min-height: 420px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.app-card:hover { border-color: rgba(242, 240, 234, 0.3); }

.app-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s;
}
.app-card:hover .app-card-bg { opacity: 1; }

.app-kairos .app-card-bg {
  background: radial-gradient(ellipse 90% 90% at 80% 20%, rgba(110, 92, 240, 0.22), transparent 65%),
              radial-gradient(ellipse 70% 80% at 20% 100%, rgba(255, 140, 90, 0.12), transparent 60%);
}
.app-kit .app-card-bg {
  background: radial-gradient(ellipse 90% 90% at 80% 30%, rgba(46, 196, 182, 0.18), transparent 65%);
}
.app-rovet .app-card-bg {
  background: radial-gradient(ellipse 90% 90% at 80% 25%, rgba(108, 201, 154, 0.2), transparent 65%),
              radial-gradient(ellipse 70% 80% at 18% 100%, rgba(232, 217, 181, 0.08), transparent 60%);
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.app-index {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-faint);
}
.app-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

.app-name {
  font-size: clamp(38px, 5vw, 72px);
  margin-bottom: 18px;
  transition: transform 0.5s var(--ease-out);
}
.app-card:hover .app-name { transform: translateX(8px); }
.app-kairos .app-name { color: #a99cf7; }
.app-kit .app-name { color: #7adcd2; }
.app-rovet .app-name { color: #8fdcb4; }
.app-upright .app-name { color: #5fe9db; }

/* Upright kartı: pomodoro halka mockup görseli */
.app-upright .app-card-bg {
  background: radial-gradient(ellipse 90% 90% at 80% 25%, rgba(0, 218, 195, 0.2), transparent 65%),
              radial-gradient(ellipse 70% 80% at 18% 100%, rgba(0, 218, 195, 0.08), transparent 60%);
}
.app-upright-visual { display: grid; place-items: center; }
.up-card-ring {
  position: relative;
  width: min(230px, 62vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 40px rgba(0, 218, 195, 0.25));
}
.up-card-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.up-card-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 9; }
.up-card-prog {
  fill: none;
  stroke: url(#upGradHome);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 150;
  filter: drop-shadow(0 0 6px rgba(0, 218, 195, 0.6));
  transition: stroke-dashoffset 0.6s var(--ease-out);
}
.app-upright:hover .up-card-prog { stroke-dashoffset: 120; }
.up-card-time {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 44px);
  color: var(--ink);
}

.app-desc {
  color: var(--ink-dim);
  max-width: 420px;
  margin-bottom: 28px;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.app-link .arrow { transition: transform 0.35s var(--ease-out); }
.app-card:hover .app-link .arrow { transform: translateX(6px); }

/* card visuals */
.app-card-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
.app-card-visual img {
  width: min(240px, 56vw);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 240, 234, 0.08);
  transform: rotate(5deg);
  transition: transform 0.6s var(--ease-out);
}
.app-card:hover .app-card-visual img { transform: rotate(2deg) translateY(-10px); }

/* keep-in-together orbs */
.kit-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.kit-orb-1 {
  width: 88px;
  height: 88px;
  background: radial-gradient(circle at 32% 32%, #7adcd2, #1f7a70);
  left: 22%;
  top: 34%;
  animation: orbFloat 5s ease-in-out infinite;
}
.kit-orb-2 {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 32% 32%, #ffd2a8, #c4764a);
  right: 24%;
  bottom: 30%;
  animation: orbFloat 5s ease-in-out 2.5s infinite;
}
.kit-thread {
  position: absolute;
  left: 28%;
  right: 28%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, #7adcd2, #ffd2a8);
  opacity: 0.5;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* rovlet glitch */
.rovlet-glitch {
  font-size: clamp(100px, 14vw, 180px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 240, 234, 0.35);
  animation: glitchFlicker 3.2s steps(1) infinite;
}
@keyframes glitchFlicker {
  0%, 88%, 100% { opacity: 1; transform: none; }
  90% { opacity: 0.4; transform: translateX(-4px) skewX(6deg); }
  92% { opacity: 1; transform: translateX(3px); }
  94% { opacity: 0.6; transform: skewX(-4deg); }
  96% { opacity: 1; transform: none; }
}

/* ---------- studio ---------- */
.studio { background: var(--bg-soft); }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.studio-grid .label { margin-bottom: 20px; }
.studio-text {
  display: grid;
  gap: 22px;
  color: var(--ink-dim);
  font-size: 18px;
  padding-top: 14px;
}
.studio-text strong { color: var(--ink); font-weight: 600; }

.studio-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 8vw, 100px);
}
.principle {
  border-top: 1px solid var(--line);
  padding: 28px 0 8px;
  transition: border-color 0.4s;
}
.principle:hover { border-top-color: var(--accent); }
.principle-icon {
  display: block;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 18px;
}
.principle-title {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 12px;
}
.principle p {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 320px;
}

/* ---------- manifesto ---------- */
.manifesto-text {
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 500;
  line-height: 1.25;
  max-width: 1100px;
}
.manifesto-text .word { opacity: 0.15; transition: opacity 0.3s; }

/* ---------- cta ---------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(110, 92, 240, 0.14), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-title {
  font-size: clamp(44px, 7vw, 110px);
  margin-bottom: 44px;
}
.btn-lg { padding: 20px 44px; font-size: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .app-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .app-card-visual { min-height: 260px; }
  .studio-grid { grid-template-columns: 1fr; }
  /* ilkeler tablet/desktopta her zaman yatay (3 sütun) */
  .studio-principles { gap: 16px; }
  .principle p { font-size: 14px; }
}

@media (max-width: 560px) {
  .hero { padding-bottom: 90px; }
  .hero-scroll { display: none; }
  /* yalnızca çok dar ekranda alt alta */
  .studio-principles { grid-template-columns: 1fr; gap: 4px; }
}
