/* Pi Studio — Stylesheet */


:root {
  --ink: #0A4FBE;
  --ink-2: #1A5FCC;
  --ink-3: #F2F6F8;
  --line: rgba(255, 255, 255, 0.32);
  --bone: #FFFFFF;
  --bone-70: rgba(255, 255, 255, 0.92);
  --bone-50: rgba(255, 255, 255, 0.75);
  --bone-30: rgba(255, 255, 255, 0.55);
  --bone-15: rgba(255, 255, 255, 0.32);
  --bone-08: rgba(255, 255, 255, 0.2);
  --accent: #FF5C1A;
  --accent-soft: rgba(255, 92, 26, 0.18);
  --accent-line: rgba(255, 92, 26, 0.45);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { 
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(10, 79, 190, 0.68), rgba(10, 79, 190, 0.68)),
    url('back.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: normal, screen;
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Mobile: scroll attachment (iOS Safari fixed-attachment issues) */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-image:
      linear-gradient(rgba(10, 79, 190, 0.74), rgba(10, 79, 190, 0.74)),
      url('back.png');
  }
}

::selection { background: var(--accent); color: var(--ink); }

/* ============ LAYOUT ============ */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .wrap { padding: 0 22px; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 79, 190, 0.78);
  border-bottom: 1px solid var(--bone-08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--bone);
  text-decoration: none;
}

.brand-mark {
  width: 72px; height: 72px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }

.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1;
}
.brand-name .bracket { color: var(--bone-50); font-family: var(--mono); }

@media (max-width: 768px) {
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 26px; }
  .brand { gap: 12px; }
}
@media (max-width: 380px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
}

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--bone-70);
  text-decoration: none;
  letter-spacing: 0.005em;
  padding: 11px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: inline-block;
}
.nav-links a:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.nav-links a:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.22);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--bone);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--bone-30);
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--bone-30);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover {
  border-color: var(--bone);
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--bone);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }

body.menu-open .nav-toggle {
  border-color: var(--bone);
}
body.menu-open .nav-toggle span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}
body.menu-open .nav-toggle span:nth-child(2) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 42px;
  gap: 24px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 92, 26, 0.2), transparent 70%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: -0.015em;
  color: var(--bone);
  text-decoration: none;
  line-height: 1.05;
  position: relative;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--accent);
}
.mobile-menu .mobile-menu-cta {
  font-size: 18px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-15);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.menu-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============ HERO ATMOSPHERE ============ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* (hero::before kaldırıldı — body bg artık tüm sayfayı kaplıyor) */

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  will-change: transform;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 92, 26, 0.35) 0%, rgba(255, 92, 26, 0) 70%);
  top: -8%;
  right: -6%;
  animation: drift1 42s ease-in-out infinite alternate;
}

.orb-2 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(140, 200, 245, 0.25) 0%, rgba(140, 200, 245, 0) 70%);
  bottom: -18%;
  left: -10%;
  animation: drift2 58s ease-in-out infinite alternate;
}

.orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255, 92, 26, 0.14) 0%, rgba(255, 92, 26, 0) 70%);
  top: 38%;
  left: 45%;
  animation: drift3 76s ease-in-out infinite alternate;
}

.orb-4 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  top: 60%;
  right: 25%;
  animation: drift4 64s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-140px, 110px) scale(1.18); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(170px, -130px) scale(1.12); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-180px, 90px) scale(1.25); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, -90px) scale(1.15); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

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

/* ============ HERO ============ */
.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ HERO FORM (light card on blue) ============ */
.hero-form-wrap {
  position: relative;
  margin-top: 8px;
}

.hero-form.form {
  background: #FFFFFF;
  border: 1px solid rgba(21, 38, 58, 0.1);
  border-radius: 14px;
  padding: 0;
  color: #15263A;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* Corner brackets — viewfinder/scope feel */
.hero-form.form::before,
.hero-form.form::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--accent);
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}
.hero-form.form::before {
  top: 50px;
  left: 14px;
  border-right: none;
  border-bottom: none;
}
.hero-form.form::after {
  bottom: 14px;
  right: 14px;
  border-left: none;
  border-top: none;
}

/* Terminal-style topbar */
.hero-form-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(21, 38, 58, 0.1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(21, 38, 58, 0.5);
  text-transform: lowercase;
}

.topbar-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.topbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.06);
}
.topbar-dots span:nth-child(1) { background: #FF5F57; }
.topbar-dots span:nth-child(2) { background: #FFBD2E; }
.topbar-dots span:nth-child(3) { background: #28C840; }

.topbar-path {
  flex: 1;
  text-align: center;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  background: #FAFBFC;
  border-radius: 4px;
  border: 1px solid rgba(21, 38, 58, 0.08);
  color: rgba(21, 38, 58, 0.55);
  font-size: 10px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(46, 204, 113, 0.85);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
  animation: statusDotPulse 2s ease-in-out infinite;
}
@keyframes statusDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(46, 204, 113, 0); }
}

/* Inner content wrapper (compensate for padding removal) */
.hero-form.form > .form-active,
.hero-form.form > .success-state {
  padding: 30px 30px 28px;
}

.hero-form.form::after {
  /* corner bracket bottom-right - keep same position */
}

.hero-form.form::before {
  top: 56px;
}

/* Header */
.hero-form.form .hero-form-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(21, 38, 58, 0.12);
}

/* Title with cursor */
.hero-form-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #15263A;
}
.hero-form-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-form-title .title-paren {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  color: rgba(21, 38, 58, 0.5);
  letter-spacing: 0;
  vertical-align: 2px;
  margin: 0 2px;
}
@media (max-width: 768px) {
  .hero-form-title .title-paren {
    font-size: 12px;
    display: inline-block;
  }
}
.title-cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  font-weight: 400;
  font-family: var(--sans);
  animation: cursorBlink 1.1s steps(1) infinite;
}
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* "Örnek briefler" link in form header */
.form-examples-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 38, 58, 0.75);
  background: rgba(255, 92, 26, 0.08);
  border: 1px solid rgba(255, 92, 26, 0.3);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}
.form-examples-link svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  transition: color 0.25s;
}
.form-examples-link .fel-arrow {
  font-family: var(--sans);
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s;
  font-weight: 500;
}
.form-examples-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 92, 26, 0.32);
}
.form-examples-link:hover svg,
.form-examples-link:hover .fel-arrow {
  color: white;
}
.form-examples-link:hover .fel-arrow {
  transform: translateY(3px);
}

/* Numbered field labels */
.hero-form .field label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 38, 58, 0.6);
  margin-bottom: 8px;
}
.field-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255, 92, 26, 0.1);
  padding: 2px 6px 1px;
  border-radius: 3px;
  border: 1px solid rgba(255, 92, 26, 0.18);
  line-height: 1;
}
.hero-form .field label .opt {
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(21, 38, 58, 0.4);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-left: auto;
  font-family: var(--sans);
  font-style: italic;
}

.hero-form .field { margin-bottom: 18px; }
.hero-form .field input,
.hero-form .field select {
  color: #15263A;
  border: none;
  border-bottom: 1.5px solid rgba(21, 38, 58, 0.15);
  background: transparent;
  font-size: 15px;
  padding: 8px 0 10px;
  font-family: var(--sans);
  width: 100%;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-form .field textarea {
  color: #15263A;
  border: 1.5px solid rgba(21, 38, 58, 0.15);
  background: transparent;
  font-size: 14.5px;
  min-height: 110px;
  padding: 12px 14px;
  font-family: var(--sans);
  width: 100%;
  outline: none;
  border-radius: 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.hero-form .field input::placeholder,
.hero-form .field textarea::placeholder {
  color: rgba(21, 38, 58, 0.32);
}

/* Glowing focus state */
.hero-form .field input:focus,
.hero-form .field select:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 -1px var(--accent);
}
.hero-form .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 26, 0.1);
}

/* Select arrow */
.hero-form .field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2315263A' stroke-opacity='0.5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  padding-right: 24px;
}

/* Chips */
.hero-form .budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.hero-form .chip {
  border: 1px solid rgba(21, 38, 58, 0.18);
  color: rgba(21, 38, 58, 0.7);
  background: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-form .chip:hover {
  border-color: rgba(21, 38, 58, 0.4);
  color: #15263A;
  transform: translateY(-1px);
}
.hero-form .chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 92, 26, 0.32);
}

/* Footer with mono status indicators */
.hero-form .form-footer {
  border-top: 1px dashed rgba(21, 38, 58, 0.12);
  margin-top: 14px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-form .form-foot-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21, 38, 58, 0.5);
  flex-wrap: wrap;
}
.foot-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.foot-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
}
.foot-divider {
  color: rgba(21, 38, 58, 0.25);
}

/* Submit button — command-execute feel */
.hero-form .btn-submit {
  background: #15263A;
  color: #FFFFFF;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 12px rgba(21, 38, 58, 0.18);
}
.hero-form .btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.hero-form .btn-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 92, 26, 0.32);
  color: #FFFFFF;
}
.hero-form .btn-submit:hover::before {
  transform: translateX(100%);
}
.hero-form .btn-submit:active { transform: translateY(0); }
.hero-form .btn-submit .arrow {
  font-family: var(--mono);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-form .btn-submit:hover .arrow {
  transform: translateX(4px);
}

/* Success state */
.hero-form .success-state {
  display: none;
  text-align: center;
}
.hero-form .success-state.show { display: block; }
.hero-form .success-state .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 22px;
  font-size: 28px;
  border: 1.5px solid rgba(46, 204, 113, 0.4);
}
.hero-form .success-state h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: #15263A;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero-form .success-state h3 em {
  color: var(--accent);
  font-style: italic;
}
.hero-form .success-state p {
  color: rgba(21, 38, 58, 0.7);
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}
.hero-form .success-state p a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hero-form.form > .form-active,
  .hero-form.form > .success-state { padding: 24px 22px; }
  .hero-form-title { font-size: 24px; }
  .hero-form-topbar { padding: 9px 12px; gap: 10px; }
  .topbar-path { font-size: 9px; padding: 3px 8px; }
  .topbar-status { font-size: 8.5px; }
  .hero-form.form::before { top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .title-cursor, .status-dot { animation: none; }
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-50);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--bone-50);
}
.label.no-line::before { display: none; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 32px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  padding: 0 0.05em;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--bone-70);
  max-width: 480px;
  margin-top: 28px;
  font-weight: 400;
}
.hero-sub strong,
.section-lede strong {
  font-weight: 500;
  color: var(--bone);
  font-style: normal;
}
@media (max-width: 768px) {
  .hero-sub { font-size: 17px; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover { background: var(--accent); color: #FFFFFF; }
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone-30);
}
.btn-secondary:hover {
  border-color: var(--bone);
  background: var(--bone-08);
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* hero side panel - status console */
.console {
  background: var(--ink-3);
  border: 1px solid rgba(21, 38, 58, 0.1);
  border-radius: 18px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 12px;
  position: relative;
  overflow: hidden;
  color: #15263A;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.console::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 38, 58, 0.3), transparent);
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21, 38, 58, 0.1);
}
.console-title {
  color: #15263A;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.console-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(21, 38, 58, 0.55);
  font-size: 10px;
}
.console-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  animation: pulse 1.5s infinite;
}

.console-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(21, 38, 58, 0.1);
  color: rgba(21, 38, 58, 0.7);
  font-size: 11px;
}
.console-row:last-child { border-bottom: none; }
.console-row .key { color: rgba(21, 38, 58, 0.55); }
.console-row .val { color: #15263A; }
.console-row .val.accent { color: var(--accent); }

.console-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 38, 58, 0.1);
  font-size: 10px;
  color: rgba(21, 38, 58, 0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ STATS STRIP ============ */
.stats {
  border-top: 1px solid var(--bone-08);
  border-bottom: 1px solid var(--bone-08);
  padding: 60px 0;
  margin-top: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.stat-item .num {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.stat-item .num em {
  font-style: italic;
  color: var(--accent);
}
.stat-item .num .unit {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.4em;
  color: var(--bone-50);
  margin-left: 4px;
  letter-spacing: 0;
}
.stat-item .desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-50);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 12px;
  max-width: 200px;
}

/* ============ SECTION TITLE ============ */
.section {
  padding: 140px 0;
}
@media (max-width: 768px) { .section { padding: 90px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--bone);
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lede {
  font-size: 17px;
  color: var(--bone-70);
  line-height: 1.55;
  max-width: 540px;
}

/* ============ MANIFESTO ============ */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bone-08);
  border: 1px solid var(--bone-08);
  border-radius: 4px;
}
@media (max-width: 768px) {
  .principles { grid-template-columns: 1fr; }
}
.principle {
  background: var(--ink);
  padding: 44px 36px;
  position: relative;
  transition: background 0.3s;
}
.principle:hover { background: var(--ink-2); }
.principle-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  display: block;
}
.principle-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.principle-title em { font-style: italic; color: var(--accent); }
.principle-text {
  color: var(--bone-70);
  font-size: 15px;
  line-height: 1.55;
}

/* ============ CASE STUDIES ============ */
.cases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.case:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 1024px) {
  .case { grid-template-columns: 1fr; gap: 50px; padding: 60px 0; }
}

.case-meta {
  position: sticky;
  top: 100px;
}

.case-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 96px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}

.case-industry {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-70);
  margin-bottom: 22px;
}

.case-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.case-title em { font-style: italic; color: var(--accent); }

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 5px 10px;
  background: var(--bone-08);
  color: var(--bone-70);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-visual {
  background: #FFFFFF;
  border: 1px solid rgba(21, 38, 58, 0.1);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}
.case-visual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 38, 58, 0.25), transparent);
}
.case-visual svg { display: block; width: 100%; height: auto; }

.case-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) {
  .case-blocks { grid-template-columns: 1fr; }
}

.case-block-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 10px;
}
.case-block-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone);
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
}
@media (max-width: 640px) {
  .case-metrics { grid-template-columns: 1fr; }
}

.case-metric .v {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.case-metric .l {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone-70);
  margin-top: 8px;
}

/* ============ CAPABILITIES ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bone-08);
  border: 1px solid var(--bone-08);
}
@media (max-width: 768px) {
  .cap-grid { grid-template-columns: 1fr; }
}
.cap {
  background: var(--ink);
  padding: 36px;
  transition: background 0.25s;
  display: flex;
  gap: 28px;
}
.cap:hover { background: var(--ink-2); }
.cap-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.cap-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.cap-desc {
  color: var(--bone-70);
  font-size: 14.5px;
  line-height: 1.55;
}
.cap-tech {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ PROCESS ============ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--bone-08);
  border: 1px solid var(--bone-08);
}
@media (max-width: 768px) {
  .process { grid-template-columns: 1fr; }
}
.step {
  background: var(--ink);
  padding: 36px 28px;
  position: relative;
  transition: background 0.25s;
}
.step:hover { background: var(--ink-2); }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 50px;
}
.step-name {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 13px;
  color: var(--bone-70);
  line-height: 1.5;
}
.step-time {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ CONTACT FORM ============ */
.contact {
  padding: 140px 0;
  position: relative;
  border-top: 1px solid var(--bone-08);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 70% 50%, var(--accent-soft), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

.contact-intro h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 32px 0 28px;
  font-weight: 400;
}
.contact-intro h2 em { font-style: italic; color: var(--accent); }

.contact-intro p {
  color: var(--bone-70);
  font-size: 17px;
  line-height: 1.55;
  max-width: 440px;
  margin-bottom: 40px;
}

.contact-meta {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid var(--bone-08);
  display: grid;
  gap: 22px;
}
.contact-meta-item .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 6px;
}
.contact-meta-item .v {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bone);
}
.contact-meta-item .v a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--bone-30); transition: border-color 0.2s, color 0.2s; }
.contact-meta-item .v a:hover { color: var(--accent); border-color: var(--accent); }

/* form */
.form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
@media (max-width: 640px) { .form { padding: 32px 26px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  position: relative;
}

.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field label .opt {
  color: var(--bone-30);
  font-size: 9.5px;
  text-transform: none;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bone-15);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  padding: 10px 0 14px;
  width: 100%;
  transition: border-color 0.25s;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--bone-30);
  font-family: var(--sans);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--sans);
  line-height: 1.5;
  border: 1px solid var(--bone-15);
  border-radius: 8px;
  padding: 14px 16px;
}
.field textarea:focus { border-color: var(--accent); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23F5F5F3' stroke-opacity='0.5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 30px;
  cursor: pointer;
}
.field select option {
  background: var(--ink-2);
  color: var(--bone);
}

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--bone-15);
  color: var(--bone-70);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.chip:hover {
  border-color: var(--bone-50);
  color: var(--bone);
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-08);
  flex-wrap: wrap;
  gap: 14px;
}

.form-foot-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--bone-50);
  letter-spacing: 0.06em;
  max-width: 280px;
  line-height: 1.45;
}

.btn-submit {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
  letter-spacing: -0.005em;
}
.btn-submit:hover { background: var(--accent); color: #FFFFFF; }
.btn-submit:hover .arrow { transform: translateX(4px); }
.btn-submit .arrow { transition: transform 0.2s; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form submission error message */
.submit-error {
  display: none;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(255, 92, 26, 0.08);
  border: 1px solid rgba(255, 92, 26, 0.35);
  border-radius: 8px;
  color: #15263A;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}
.submit-error a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-state {
  display: none;
  text-align: center;
  padding: 50px 30px;
}
.success-state.show { display: block; }
.success-state .check {
  width: 56px; height: 56px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
  font-size: 26px;
}
.success-state h3 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.success-state h3 em { font-style: italic; color: var(--accent); }
.success-state p {
  color: var(--bone-70);
  font-size: 15px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--bone-08);
  padding: 60px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.foot-brand-block {
  max-width: 340px;
}
.foot-brand-block p {
  margin-top: 18px;
  color: var(--bone-70);
  font-size: 14px;
  line-height: 1.55;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 18px;
  font-weight: 400;
}
.foot-col a, .foot-col p {
  display: block;
  color: var(--bone);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--accent); }

.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--bone-08);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-50);
  letter-spacing: 0.04em;
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--bone-08);
  border-bottom: 1px solid var(--bone-08);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
  background: var(--ink-2);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--bone-50);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
  font-size: 14px;
}

/* ============ animations ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.32s; }
.reveal-4 { animation-delay: 0.45s; }
.reveal-5 { animation-delay: 0.58s; }

/* small inline arrow */
.in-arrow {
  display: inline-block;
  font-style: normal;
}

/* ============ HERO BLUEPRINT GRID ============ */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, black 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, black 35%, transparent 90%);
  pointer-events: none;
}

/* Crosshair markers at grid intersections */
.hero-grid-bg::before,
.hero-grid-bg::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
.hero-grid-bg::before {
  top: 20%;
  right: 12%;
  animation: blink 3.5s ease-in-out infinite;
}
.hero-grid-bg::after {
  bottom: 18%;
  left: 8%;
  animation: blink 4.5s ease-in-out infinite 1s;
}
@keyframes blink {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* ============ STACK SECTION ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .stack-grid { grid-template-columns: 1fr; }
}

.stack-group {
  border: 1px solid var(--bone-15);
  border-radius: 12px;
  padding: 24px 22px;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
  background: rgba(255, 255, 255, 0.025);
}
.stack-group:hover {
  border-color: var(--bone-30);
  background: rgba(255, 255, 255, 0.05);
}

.stack-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.stack-group-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 26, 0.18);
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.stack-item {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  background: var(--bone-08);
  color: var(--bone);
  border-radius: 5px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s;
}
.stack-item:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* ============ TERMINAL / CODE BLOCK ============ */
.terminal {
  margin-top: 60px;
  background: rgba(8, 22, 40, 0.55);
  border: 1px solid var(--bone-15);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.terminal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--bone-15);
}
.terminal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  min-width: 60px;
}
.terminal-dots i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bone-30);
}
.terminal-dots i:nth-child(1) { background: #FF5C57; }
.terminal-dots i:nth-child(2) { background: #FFBD2E; }
.terminal-dots i:nth-child(3) { background: #28C940; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone-50);
  letter-spacing: 0.04em;
}

.terminal-status {
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #4ADE80;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}
.terminal-status .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse 1.5s infinite;
}

.terminal-body {
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--bone);
  line-height: 1.75;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .terminal-body { font-size: 12px; padding: 18px 20px; }
}

.terminal-body .comment { color: rgba(255, 255, 255, 0.4); font-style: italic; }
.terminal-body .keyword { color: #FF8347; }
.terminal-body .string  { color: #6ADE93; }
.terminal-body .number  { color: #FFBD2E; }
.terminal-body .func    { color: #8CC8F5; }
.terminal-body .cls     { color: #C792EA; }

/* ============ MOBILE POLISH ============ */

/* Case study SVGs: allow horizontal scroll on small screens with min-width preserving readability */
@media (max-width: 720px) {
  .case-visual {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .case-visual svg {
    min-width: 640px;
  }
  .case-visual::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, var(--ink-3));
    pointer-events: none;
  }
  /* Disable sticky case-meta on mobile (single column makes it odd) */
  .case-meta { position: static; }
  /* Tighter case padding on mobile */
  .case { padding: 50px 0; }
  .case-num { font-size: 72px; }
}

/* Tighter hero on mobile */
@media (max-width: 768px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
  }
  .hero h1 { margin: 24px 0; }
  .hero-actions { margin-top: 30px; }
  .console { padding: 20px; }
}

/* Smaller marquee text on mobile */
@media (max-width: 768px) {
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 17px; gap: 40px; }
  .marquee-track { gap: 40px; }
}

/* Tighter section spacing on small screens */
@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 44px; }
}

/* Footer: stack to single column on very small screens */
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-base { flex-direction: column; gap: 12px; text-align: center; }
}

/* Stats: slightly tighter on small */
@media (max-width: 480px) {
  .stats { padding: 44px 0; }
  .stats-grid { gap: 28px 24px; }
}

/* Contact section mobile padding */
@media (max-width: 768px) {
  .contact { padding: 90px 0; }
}

/* Tap-friendly link sizes for mobile menu */
@media (max-width: 380px) {
  .mobile-menu a { font-size: 36px; }
  .mobile-menu { padding: 0 30px; gap: 20px; }
}

/* ============ CHAT WIDGET ============ */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* WhatsApp bubble */
.whatsapp-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42), 0 4px 12px rgba(0, 0, 0, 0.18);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  animation: bubbleIn 0.6s 1.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.whatsapp-bubble svg {
  width: 28px;
  height: 28px;
}
.whatsapp-bubble::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: waPulse 2.4s ease-in-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-bubble:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0, 0, 0, 0.22);
}
.whatsapp-bubble:active { transform: translateY(0) scale(1); }

@media (max-width: 480px) {
  .whatsapp-bubble { width: 52px; height: 52px; }
  .whatsapp-bubble svg { width: 24px; height: 24px; }
}

.chat-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 32px rgba(255, 92, 26, 0.45), 0 4px 12px rgba(0, 0, 0, 0.22);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.25s;
  animation: bubbleIn 0.6s 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes bubbleIn {
  from { transform: translateY(60px) scale(0.6); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.chat-bubble:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 18px 42px rgba(255, 92, 26, 0.55), 0 6px 16px rgba(0, 0, 0, 0.28);
}
.chat-bubble:active { transform: translateY(0) scale(1); }

.chat-bubble-icon {
  width: 26px;
  height: 26px;
}

.chat-bubble-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ecc71;
  border: 3px solid var(--accent);
  animation: chatPulse 2s infinite;
}

.chat-bubble.is-open { background: #15263A; }
.chat-bubble.is-open .chat-bubble-dot { display: none; }
.chat-bubble.is-open .chat-bubble-icon { display: none; }
.chat-bubble .chat-close-icon { display: none; width: 18px; height: 18px; }
.chat-bubble.is-open .chat-close-icon { display: block; }

@keyframes chatPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}

.chat-panel {
  position: absolute;
  bottom: 84px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: white;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chat-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 2;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(21, 38, 58, 0.1);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.chat-avatar svg { width: 100%; height: 100%; }

.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name {
  font-weight: 600;
  font-size: 15px;
  color: #15263A;
  margin-bottom: 2px;
}
.chat-header-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21, 38, 58, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-header-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  animation: dotBlink 2s infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(21, 38, 58, 0.55);
  transition: background 0.2s, color 0.2s;
  padding: 0;
}
.chat-close:hover {
  background: rgba(21, 38, 58, 0.08);
  color: #15263A;
}
.chat-close svg { width: 14px; height: 14px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(21, 38, 58, 0.2); border-radius: 2px; }

.chat-msg {
  max-width: 82%;
  font-size: 14px;
  line-height: 1.45;
  animation: msgIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  word-wrap: break-word;
  white-space: pre-line; /* multi-line bot answers — \n satır sonu olarak gösterilsin */
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(10, 79, 190, 0.08);
  color: #15263A;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  padding: 11px 14px;
  border-radius: 16px 16px 4px 16px;
}

.chat-typing {
  align-self: flex-start;
  background: rgba(10, 79, 190, 0.08);
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  display: flex;
  gap: 4px;
  align-items: center;
  animation: msgIn 0.3s;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(21, 38, 58, 0.45);
  animation: typingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  align-self: flex-start;
  max-width: 100%;
  animation: msgIn 0.4s 0.1s backwards;
}
.chat-chip {
  background: white;
  border: 1px solid rgba(21, 38, 58, 0.2);
  color: #15263A;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
  font-weight: 500;
}
.chat-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.chat-input-wrap {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(21, 38, 58, 0.1);
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
}
.chat-input {
  flex: 1;
  border: 1px solid rgba(21, 38, 58, 0.18);
  background: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  color: #15263A;
  outline: none;
  font-family: var(--sans);
  transition: border-color 0.2s;
}
.chat-input::placeholder { color: rgba(21, 38, 58, 0.4); }
.chat-input:focus { border-color: var(--accent); }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #15263A;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.chat-send:hover {
  background: var(--accent);
  transform: scale(1.08) rotate(15deg);
}
.chat-send svg { width: 15px; height: 15px; margin-left: -1px; }

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); height: calc(100vh - 110px); bottom: 76px; }
  .chat-bubble { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-bubble, .chat-bubble-dot, .chat-msg, .chat-typing span, .chat-chips, .chat-header-status span {
    animation: none !important;
  }
}

/* ============ SLOGAN ROTATOR SECTION ============ */
.slogans {
  position: relative;
  padding: 100px 0 120px;
  border-top: 1px solid var(--bone-08);
  border-bottom: 1px solid var(--bone-08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}
/* Marquee strip at top of slogan section */
.slogan-marquee {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.slogan-track {
  display: flex;
  gap: 48px;
  animation: marquee-slide 40s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--bone-30);
  align-items: center;
}
.slogan-track span {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
}
.slogan-track .dot {
  color: var(--accent);
  font-style: normal;
  font-size: 16px;
  opacity: 0.7;
}
@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Main rotator */
.slogan-rotator {
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.slogan-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-50);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.slogan-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.slogan-stage {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  max-width: 100%;
}

.slogan-static {
  color: var(--bone-50);
  font-style: italic;
}

.slogan-cycle {
  display: inline-grid;
  vertical-align: top;
  line-height: 1;
  overflow: hidden;
  padding-bottom: 0.1em;
  max-width: 100%;
}
.slogan-cycle > span {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  display: block;
  opacity: 0;
  transform: translateY(80%);
  animation: slogan-slot 15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  animation-delay: calc(var(--i) * 3s);
  color: var(--bone);
}
.slogan-cycle > span em {
  color: var(--accent);
  font-style: normal;
}

@keyframes slogan-slot {
  0%   { opacity: 0; transform: translateY(80%); }
  3%   { opacity: 1; transform: translateY(0); }
  17%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 0; transform: translateY(-80%); }
  100% { opacity: 0; transform: translateY(-80%); }
}

/* Pills that hop */
.slogan-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.slogan-pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--bone-70);
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, border-color 0.25s;
  animation: pillHop 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}
.slogan-pill:nth-child(1) { animation-delay: 0s; }
.slogan-pill:nth-child(2) { animation-delay: 0.4s; }
.slogan-pill:nth-child(3) { animation-delay: 0.8s; }
.slogan-pill:nth-child(4) { animation-delay: 1.2s; }
.slogan-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.slogan-pill:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}
.slogan-pill.active:hover {
  background: var(--accent);
  border-color: var(--accent);
}

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

@media (max-width: 768px) {
  .slogans { padding: 70px 0 80px; }
  .slogan-track { font-size: 22px; gap: 32px; }
  .slogan-rotator { margin-top: 80px; gap: 36px; }
  .slogan-stage { gap: 18px; }
}

/* ============ HOVER BOUNCE / LIFT EFFECTS ============ */
.case-visual {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}
.case:hover .case-visual {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.cap {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background 0.3s;
  cursor: default;
}
.cap:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.32);
}

.stack-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  cursor: default;
}
.stack-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  border-color: rgba(255, 92, 26, 0.3);
}

.process-step {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-step:hover {
  transform: translateY(-5px);
}

.stat {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.stat:hover {
  transform: translateY(-4px);
}

.case-metric {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.case-metric:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 92, 26, 0.18);
}

/* Stack tool tags bounce on hover */
.stack-tools span {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s;
}
.stack-tools span:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: white;
}

/* Industry tags bounce */
.case-stack .tag {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s, color 0.25s;
}
.case-stack .tag:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .slogan-cycle span, .slogan-pill, .slogan-track {
    animation: none !important;
  }
}

/* ============ SCROLL-TRIGGERED BOUNCE-IN ============ */
.case, .cap, .stack-card, .process-step, .stat-item {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case.in-view,
.cap.in-view,
.stack-card.in-view,
.process-step.in-view,
.stat-item.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger by position for cards within a grid */
.cap-grid .cap.in-view:nth-child(2) { transition-delay: 0.08s; }
.cap-grid .cap.in-view:nth-child(3) { transition-delay: 0.16s; }
.cap-grid .cap.in-view:nth-child(4) { transition-delay: 0.24s; }
.cap-grid .cap.in-view:nth-child(5) { transition-delay: 0.32s; }
.cap-grid .cap.in-view:nth-child(6) { transition-delay: 0.4s; }

.stack-grid .stack-card.in-view:nth-child(2) { transition-delay: 0.08s; }
.stack-grid .stack-card.in-view:nth-child(3) { transition-delay: 0.16s; }
.stack-grid .stack-card.in-view:nth-child(4) { transition-delay: 0.24s; }
.stack-grid .stack-card.in-view:nth-child(5) { transition-delay: 0.32s; }
.stack-grid .stack-card.in-view:nth-child(6) { transition-delay: 0.4s; }

.process-grid .process-step.in-view:nth-child(2) { transition-delay: 0.1s; }
.process-grid .process-step.in-view:nth-child(3) { transition-delay: 0.2s; }
.process-grid .process-step.in-view:nth-child(4) { transition-delay: 0.3s; }
.process-grid .process-step.in-view:nth-child(5) { transition-delay: 0.4s; }

.stats-grid .stat-item.in-view:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-item.in-view:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-item.in-view:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .case, .cap, .stack-card, .process-step, .stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ BRIEF EXAMPLES SECTION ============ */
.briefs {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--bone-08);
  border-bottom: 1px solid var(--bone-08);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 30px;
}

.brief-card {
  background: #FFFFFF;
  border: 1px solid rgba(21, 38, 58, 0.1);
  border-radius: 14px;
  color: #15263A;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.brief-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.2);
}

/* Top bar */
.brief-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(21, 38, 58, 0.1);
  gap: 10px;
  flex-wrap: wrap;
}
.brief-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.brief-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(255, 92, 26, 0.1);
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 92, 26, 0.18);
}
.brief-sector {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(21, 38, 58, 0.7);
}
.brief-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 38, 58, 0.5);
}
.brief-card-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(21, 38, 58, 0.35);
  display: inline-block;
}

.brief-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Fields grid (compact 2-col) */
.brief-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.bf {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--sans);
  min-width: 0;
}
.bf-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(255, 92, 26, 0.08);
  padding: 1px 5px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1.4;
}
.bf-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(21, 38, 58, 0.5);
  text-transform: uppercase;
}
.bf-val {
  font-size: 13px;
  color: #15263A;
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

/* Message block */
.brief-message {
  padding-top: 14px;
  border-top: 1px dashed rgba(21, 38, 58, 0.14);
}
.bm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(21, 38, 58, 0.55);
  margin-bottom: 10px;
}
.brief-message p {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(21, 38, 58, 0.85);
  margin-bottom: 10px;
}
.brief-message p:last-child { margin-bottom: 0; }
.brief-message p em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* Budget row */
.brief-budget {
  padding-top: 14px;
  border-top: 1px dashed rgba(21, 38, 58, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.budget-tag {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #15263A;
  background: rgba(255, 92, 26, 0.1);
  border: 1px solid rgba(255, 92, 26, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .brief-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .brief-card-body { padding: 18px 18px 20px; }
  .brief-fields { grid-template-columns: 1fr; gap: 10px; }
  .brief-card-top { padding: 12px 16px; }
}

/* ============ BRIEF TIPS ============ */
.brief-tips {
  margin-top: 30px;
  padding: 56px 0;
  border-top: 1px solid var(--bone-08);
}
.brief-tips-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.brief-tips h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 600px;
}
.brief-tips h3 em {
  color: var(--accent);
  font-style: italic;
}

.brief-tips-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bone-08);
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.tip:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 92, 26, 0.25);
}
.tip-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  width: fit-content;
}
.tip h4 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 6px;
}
.tip-good, .tip-bad {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  padding: 3px 0;
  word-break: break-word;
}
.tip-good { color: #6EE7B7; }
.tip-bad { color: rgba(255, 92, 26, 0.75); }

@media (max-width: 1024px) {
  .brief-tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .brief-tips-grid { grid-template-columns: 1fr; }
  .brief-tips { padding: 40px 0; }
}

/* ============ BRIEF CTA ============ */
.brief-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
  margin-top: 30px;
  border-top: 1px solid var(--bone-08);
  text-align: center;
}
.brief-cta-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-50);
}
.brief-cta-btn {
  font-size: 16px;
  padding: 14px 30px;
}
.brief-cta-btn span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brief-cta-btn:hover span { transform: translateX(6px); }

/* ============ COMPREHENSIVE MOBILE POLISH ============ */
/* iOS safe-area support */
@supports (padding: max(0px)) {
  .nav-inner { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  .chat-widget { bottom: max(24px, env(safe-area-inset-bottom)); right: max(24px, env(safe-area-inset-right)); }
  .mobile-menu { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .foot { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
}

/* Prevent iOS auto-zoom on input focus (font-size must be >=16px on iOS) */
@media (max-width: 768px) {
  .hero-form .field input,
  .hero-form .field select,
  .hero-form .field textarea,
  .chat-input {
    font-size: 16px;
  }
}

/* TABLET / large mobile (768px and below) */
@media (max-width: 768px) {
  /* Hero refinements */
  .hero h1 {
    font-size: clamp(44px, 12vw, 76px);
    letter-spacing: -0.025em;
  }
  .hero-sub { font-size: 16px; line-height: 1.55; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 50px; }

  /* Hero form: more compact padding */
  .hero-form.form { padding: 24px 22px; }
  .hero-form-title { font-size: 22px; }
  .hero-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-form .field { margin-bottom: 16px; }
  .hero-form .field input,
  .hero-form .field select,
  .hero-form .field textarea { padding: 10px 0 12px; min-height: 44px; }
  .hero-form .field textarea { padding: 12px 14px; }
  .hero-form .chip { padding: 10px 14px; font-size: 12.5px; min-height: 40px; }
  .hero-form .btn-submit { min-height: 50px; padding: 0 24px; width: 100%; justify-content: center; }
  .hero-form .form-footer { flex-direction: column; align-items: stretch; gap: 14px; }

  /* Section titles smaller */
  .section-title { font-size: clamp(34px, 8vw, 56px); }
  .section-lede { font-size: 15px; }

  /* Marquee */
  .marquee-item { font-size: 16px; }

  /* Stats more readable */
  .stat-item .num { font-size: clamp(40px, 11vw, 64px); }
  .stat-item .desc { font-size: 13px; }

  /* Cases: tighter */
  .case-num { font-size: 64px; }
  .case-title { font-size: clamp(24px, 6vw, 32px); }
  .case-blocks { grid-template-columns: 1fr; gap: 20px; }
  .case-block-text { font-size: 14px; line-height: 1.6; }
  .case-metrics { grid-template-columns: 1fr; gap: 14px; }
  .case-metric .v { font-size: 28px; }

  /* Capabilities single column */
  .cap-grid { grid-template-columns: 1fr; gap: 16px; }
  .cap { padding: 22px; }

  /* Stack section single column */
  .stack-grid { grid-template-columns: 1fr; gap: 16px; }
  .stack-card { padding: 22px; }

  /* Process single column */
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-step { padding: 20px 0; }

  /* Slogan section mobile */
  .slogans { padding: 60px 0 70px; }
  .slogan-marquee { top: 20px; }
  .slogan-track { font-size: 20px; gap: 32px; }
  .slogan-rotator { margin-top: 70px; gap: 32px; }
  .slogan-stage { gap: 14px; }
  .slogan-cycle { min-width: 7ch; }
  .slogan-pill { padding: 8px 14px; font-size: 11.5px; }

  /* Terminal block readable on mobile */
  .terminal pre { font-size: 11.5px; }

  /* Make all buttons touch-friendly */
  .btn { min-height: 48px; padding: 0 24px; }
  .nav-cta { min-height: 42px; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
}

/* PHONE (480px and below) */
@media (max-width: 480px) {
  /* Hero even more compact */
  .hero h1 { font-size: clamp(40px, 13vw, 64px); }
  .hero { padding-top: 95px; padding-bottom: 50px; }
  .label { font-size: 10.5px; letter-spacing: 0.18em; }

  /* Hero form: smaller padding */
  .hero-form.form { padding: 22px 18px; border-radius: 14px; }
  .hero-form-title { font-size: 20px; }
  .hero-form-header { margin-bottom: 18px; padding-bottom: 14px; }

  /* Sections tighter */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; gap: 24px; }
  .section-title { font-size: clamp(30px, 9vw, 42px); }

  /* Wrap padding tighter on small phones */
  .wrap { padding: 0 20px; }

  /* Stats: switch to 2x2 with smaller numbers */
  .stats { padding: 36px 0; }
  .stats-grid { gap: 22px 16px; }
  .stat-item .num { font-size: 36px; }
  .stat-item .desc { font-size: 12px; }

  /* Cases single column already, just tighter */
  .case { padding: 40px 0; gap: 32px; }
  .case-num { font-size: 56px; margin-bottom: 12px; }
  .case-industry { font-size: 10px; padding: 5px 10px; }
  .case-title { font-size: clamp(22px, 6vw, 28px); }

  /* Slogan section even smaller */
  .slogan-stage { font-size: clamp(28px, 7vw, 38px); gap: 12px; }
  .slogan-track { font-size: 18px; }
  .slogan-pills { gap: 6px; }
  .slogan-pill { padding: 7px 12px; font-size: 10.5px; }

  /* Mobile menu items */
  .mobile-menu a { font-size: 40px; }
  .mobile-menu-foot { font-size: 13px; }

  /* Foot padding tighter */
  .foot { padding-top: 60px; padding-bottom: 40px; }

  /* Chat widget bubble slightly smaller */
  .chat-widget { bottom: 14px; right: 14px; }
  .chat-bubble { width: 56px; height: 56px; }
  .chat-bubble-icon { width: 22px; height: 22px; }

  /* Case-visual: contained horizontal scroll for SVG legibility */
  .case-visual { min-height: auto; }
  .case-visual svg { min-width: 640px; }
}

/* SMALL PHONE (380px and below) */
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .stat-item .num { font-size: 32px; }
  .slogan-stage { font-size: 26px; gap: 10px; }
  .case-num { font-size: 48px; }
  .hero-form.form { padding: 20px 16px; }
  .nav-toggle { transform: scale(0.95); }
}

/* LANDSCAPE PHONE: prevent hero from being too tall */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding-top: 80px; padding-bottom: 40px; }
  .hero h1 { font-size: 44px; }
}

/* Make sure case SVGs are horizontally scrollable with momentum on iOS */
@media (max-width: 768px) {
  .case-visual {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .case-visual::-webkit-scrollbar { display: none; }
}

/* Disable hover bounce on touch devices (no hover state on touch) */
@media (hover: none) {
  .case:hover .case-visual,
  .cap:hover,
  .stack-card:hover,
  .process-step:hover,
  .stat:hover,
  .case-metric:hover,
  .stack-tools span:hover,
  .case-stack .tag:hover,
  .nav-links a:hover,
  .slogan-pill:hover {
    transform: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   PROCESS SECTION — Bir Pi Projesinin Yolculuğu (5 sahne)
   Cinematic split-layout: sol bilgi + sağ canlı sahne
   ═══════════════════════════════════════════════════════════ */

.process-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
}

.scene {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
  margin: 64px 0 96px;
  position: relative;
}

.scene:nth-child(odd) {
  /* Scene 1, 3, 5 — text left, visual right */
}
.scene:nth-child(even) {
  /* Scene 2, 4 — text right, visual left (zig-zag effect) */
  direction: rtl;
}
.scene:nth-child(even) > * {
  direction: ltr;
}

/* Sahne bilgi sütunu */
.scene-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scene-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21,38,58,0.55);
}

.scene-num {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.scene-time {
  position: relative;
  padding-left: 16px;
}
.scene-time::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}

.scene-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

.scene-desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(21,38,58,0.78);
  max-width: 480px;
  margin: 0;
}

.scene-desc strong {
  color: var(--ink);
  font-weight: 600;
}

.scene-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(21,38,58,0.72);
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

.scene-output {
  margin-top: 12px;
  padding: 14px 18px;
  background: rgba(10,79,190,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

/* Sahne görsel sütunu */
.scene-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F7FB 0%, #EBF1F7 100%);
  box-shadow: 0 24px 48px -16px rgba(10,79,190,0.18), inset 0 0 0 1px rgba(255,255,255,0.5);
}

/* ─────────── SAHNE 1: KEŞİF (toplantı odası) ─────────── */
.scene-discovery {
  perspective: 1200px;
}

.room {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(28deg) rotateZ(-12deg) scale(0.9);
  transform-origin: center center;
}

.room-floor {
  position: absolute;
  bottom: 12%;
  left: 8%;
  right: 8%;
  height: 65%;
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(235,241,247,0.85) 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10,79,190,0.12);
}

.table {
  position: absolute;
  bottom: 35%;
  left: 25%;
  width: 50%;
  height: 30%;
  background: linear-gradient(135deg, #fff 0%, #e8eef5 100%);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(10,79,190,0.15);
  transform: rotateX(-12deg);
}

.laptop {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 35%;
  height: 50%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 3px;
  transform: rotateX(-25deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.laptop-screen {
  position: absolute;
  inset: 8% 8% 15% 8%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 2px;
  overflow: hidden;
}

.laptop-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: laptopScan 3s ease-in-out infinite;
}

@keyframes laptopScan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.notebook {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 18%;
  height: 30%;
  background: linear-gradient(135deg, #f5f1e8 0%, #ebe5d2 100%);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transform: rotate(-8deg);
}

.notebook::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: rgba(0,0,0,0.15);
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), 0 8px 0 rgba(0,0,0,0.15);
}

.coffee {
  position: absolute;
  top: 30%;
  right: 8%;
  width: 10%;
  height: 25%;
  background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
  border-radius: 50% 50% 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.coffee::before {
  content: '';
  position: absolute;
  top: -25%;
  left: 25%;
  width: 50%;
  height: 25%;
  background: rgba(139,69,19,0.4);
  border-radius: 50%;
  animation: steam 2s ease-in-out infinite;
}

@keyframes steam {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30%) scale(1.3); opacity: 0; }
}

.chair {
  position: absolute;
  width: 12%;
  height: 18%;
  background: linear-gradient(135deg, #5a6c7d 0%, #3a4856 100%);
  border-radius: 4px 4px 2px 2px;
}

.chair-1 { bottom: 18%; left: 20%; }
.chair-2 { bottom: 18%; right: 20%; }
.chair-3 { bottom: 8%; left: 44%; }

.whiteboard {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%) rotateX(-5deg);
  width: 45%;
  height: 25%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-radius: 4px;
  border: 1px solid rgba(10,79,190,0.15);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 8% 6%;
}

.wb-line {
  position: absolute;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
  animation: wbDraw 4s ease-in-out infinite;
}
.wb-line-1 {
  top: 25%;
  left: 15%;
  width: 50%;
  animation-delay: 0s;
}
.wb-line-2 {
  top: 50%;
  left: 15%;
  width: 35%;
  animation-delay: 0.6s;
  background: var(--accent);
}
.wb-line-3 {
  top: 75%;
  left: 15%;
  width: 60%;
  animation-delay: 1.2s;
}
.wb-arrow {
  position: absolute;
  top: 40%;
  right: 12%;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0;
  animation: wbDraw 4s ease-in-out infinite;
  animation-delay: 1.8s;
}

@keyframes wbDraw {
  0% { opacity: 0; transform: scaleX(0); transform-origin: left; }
  15% { opacity: 1; transform: scaleX(1); }
  85% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Soru baloncukları */
.question-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.qb {
  position: absolute;
  background: white;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 20px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(10,79,190,0.18);
  opacity: 0;
  animation: qbFloat 8s ease-in-out infinite;
  border: 1px solid rgba(10,79,190,0.08);
}

.qb-1 { top: 12%; left: 8%; animation-delay: 0s; }
.qb-2 { top: 22%; right: 10%; animation-delay: 1.6s; }
.qb-3 { top: 50%; left: 5%; animation-delay: 3.2s; }
.qb-4 { top: 60%; right: 8%; animation-delay: 4.8s; }
.qb-5 { top: 80%; left: 35%; animation-delay: 6.4s; background: var(--accent); color: white; }

@keyframes qbFloat {
  0% { opacity: 0; transform: translateY(20px) scale(0.7); }
  10% { opacity: 1; transform: translateY(0) scale(1); }
  60% { opacity: 1; transform: translateY(-8px) scale(1); }
  80% { opacity: 0; transform: translateY(-20px) scale(0.9); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

/* ─────────── SAHNE 2: PROTOTİP (IDE + output) ─────────── */
.scene-prototype {
  display: grid;
  grid-template-rows: 1.4fr 1fr;
  gap: 16px;
  padding: 24px;
}

.ide {
  background: #1e1e2e;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
}

.ide-topbar {
  background: #2a2a3e;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ide-dot-red { background: #ff5f56; }
.ide-dot-yellow { background: #ffbd2e; }
.ide-dot-green { background: #27c93f; }

.ide-file {
  margin-left: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
}

.ide-body {
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #d4d4dc;
  position: relative;
  min-height: 130px;
}

.code-line {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: codeAppear 0.4s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.3s; }
.code-line:nth-child(2) { animation-delay: 0.6s; }
.code-line:nth-child(3) { animation-delay: 0.9s; }
.code-line:nth-child(4) { animation-delay: 1.2s; }
.code-line:nth-child(5) { animation-delay: 1.5s; }
.code-line:nth-child(6) { animation-delay: 1.8s; }

@keyframes codeAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.line-num {
  color: rgba(255,255,255,0.25);
  width: 14px;
  text-align: right;
}

.code-kw { color: #ff79c6; }
.code-id { color: #8be9fd; }
.code-cls { color: #50fa7b; }
.code-str { color: #f1fa8c; }
.code-fn { color: #50fa7b; }
.code-cmt { color: #6272a4; font-style: italic; }

.code-cursor {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 7px;
  height: 14px;
  background: #FF5C1A;
  animation: cursorBlink 1s steps(2) infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.proto-output {
  background: white;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 8px 16px rgba(10,79,190,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.output-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.output-label {
  color: rgba(21,38,58,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.output-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Geist', sans-serif;
}

.output-unit {
  color: rgba(21,38,58,0.5);
  font-size: 12px;
}

.proto-bar {
  height: 4px;
  background: rgba(10,79,190,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.proto-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
  width: 0;
  animation: protoBarFill 2.5s ease-out forwards;
  animation-delay: 1s;
  border-radius: 2px;
}

@keyframes protoBarFill {
  to { width: 91%; }
}

/* ─────────── SAHNE 3: PİLOT (mobile + desktop) ─────────── */
.scene-pilot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 24px;
}

.device-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.phone {
  width: 32%;
  aspect-ratio: 9/19;
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.25), inset 0 0 0 1.5px rgba(255,255,255,0.08);
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 12px;
  background: #000;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.phone-app-bar {
  padding: 18px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid rgba(10,79,190,0.06);
}

.phone-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 10px;
  color: rgba(21,38,58,0.7);
  border-bottom: 1px solid rgba(10,79,190,0.04);
}

.task-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(10,79,190,0.25);
  flex-shrink: 0;
}

.task-dot.pulse {
  background: var(--accent);
  position: relative;
}

.task-dot.pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: taskPulse 1.6s ease-out infinite;
}

@keyframes taskPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.5); opacity: 0; }
}

.task-active .task-text {
  color: var(--ink);
  font-weight: 600;
}

.phone-map {
  position: relative;
  margin: 10px;
  flex: 1;
  background: linear-gradient(135deg, #e8eef5 0%, #d4e0ee 100%);
  border-radius: 8px;
  height: 38%;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: pinPop 2s ease-out infinite;
}

.map-pin-1 { top: 25%; left: 20%; animation-delay: 0s; }
.map-pin-2 { top: 55%; left: 60%; animation-delay: 0.6s; }
.map-pin-3 { top: 35%; left: 75%; animation-delay: 1.2s; }

@keyframes pinPop {
  0%, 70% { transform: scale(1); }
  85% { transform: scale(1.4); }
}

.map-route {
  position: absolute;
  top: 30%;
  left: 23%;
  width: 55%;
  height: 30%;
  border-top: 2px dashed var(--ink);
  border-radius: 50%;
  opacity: 0.5;
}

.desktop {
  width: 64%;
  background: linear-gradient(135deg, #fff 0%, #f5f8fb 100%);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(10,79,190,0.15);
  overflow: hidden;
  border: 1px solid rgba(10,79,190,0.08);
}

.desktop-bar {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(10,79,190,0.06);
  font-size: 11px;
}

.desk-tab {
  padding: 4px 10px;
  border-radius: 4px;
  color: rgba(21,38,58,0.5);
  cursor: pointer;
}

.desk-tab-active {
  background: rgba(10,79,190,0.08);
  color: var(--ink);
  font-weight: 600;
}

.desktop-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.live-chart {
  height: 80px;
  color: var(--ink);
}

.live-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: chartDraw 3s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}

.chart-area {
  opacity: 0;
  animation: chartFill 1s ease-out forwards;
  animation-delay: 3s;
}

@keyframes chartFill {
  to { opacity: 0.15; }
}

.live-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lk {
  background: rgba(10,79,190,0.05);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

.lk-num {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.lk-lbl {
  font-size: 10px;
  color: rgba(21,38,58,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Sync animasyonu */
.sync-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 2px;
  display: flex;
  align-items: center;
}

.sync-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: syncFlow 2s linear infinite;
}

@keyframes syncFlow {
  0% { transform: translateX(-20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(20px); opacity: 0; }
}

/* ─────────── SAHNE 4: ÜRETİM (dashboard) ─────────── */
.scene-production {
  padding: 22px;
}

.dashboard {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(10,79,190,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(10,79,190,0.06);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

.dash-brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.status-ok {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  position: relative;
}

.status-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #16a34a;
  animation: statusPulse 1.6s ease-out infinite;
}

@keyframes statusPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.dash-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.dash-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff5fb 100%);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
}

.dash-card-big {
  grid-row: 1 / 2;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
}

.dash-card-wide {
  grid-column: 1 / -1;
  grid-row: 2 / 3;
  color: var(--ink);
}

.dash-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.dash-card-num {
  font-family: 'Geist', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.dash-card-unit {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.dash-spark, .dash-area {
  height: 22px;
  margin-top: 4px;
  color: currentColor;
  opacity: 0.7;
}
.dash-area { height: 40px; }

.dash-spark svg, .dash-area svg {
  width: 100%;
  height: 100%;
}

.dash-area path:first-child { animation: chartFill 1.5s ease-out forwards; opacity: 0; animation-delay: 1.5s; }
.dash-area path:last-child {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: chartDraw 2.5s ease-out forwards;
  animation-delay: 0.8s;
}

/* ─────────── SAHNE 5: BAKIM (monitor) ─────────── */
.scene-maintenance {
  padding: 24px;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f30 100%);
}

.monitor {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.85);
  font-family: 'JetBrains Mono', monospace;
}

.monitor-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.monitor-time {
  font-size: 18px;
  font-weight: 600;
  color: #50fa7b;
}

.heartbeat {
  height: 50px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px;
  color: #50fa7b;
}

.heartbeat svg {
  width: 100%;
  height: 100%;
}

.hb-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: hbDraw 3s linear infinite;
}

@keyframes hbDraw {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
}

.mon-cell {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

.mon-cell-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.mon-dot-ok { background: #50fa7b; box-shadow: 0 0 8px #50fa7b; }
.mon-dot-warn { background: #ffbd2e; box-shadow: 0 0 8px #ffbd2e; }

.mon-cell-text {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mon-cell-val {
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
}

/* ─────────── PROCESS OUTRO ─────────── */
.process-outro {
  margin-top: 80px;
  padding: 32px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: white;
  box-shadow: 0 24px 48px -16px rgba(10,79,190,0.4);
}

.outro-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  line-height: 1.4;
  max-width: 600px;
}

.outro-text strong {
  color: var(--accent);
  font-weight: 400;
}

.outro-cta {
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.outro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,92,26,0.4);
}

.outro-cta .arrow {
  transition: transform 0.2s;
}

.outro-cta:hover .arrow {
  transform: translateX(4px);
}

/* ─────────── MOBİL ─────────── */
@media (max-width: 920px) {
  .scene {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 48px 0 64px;
  }

  .scene:nth-child(even) {
    direction: ltr;
  }

  .scene-visual {
    order: 2;
    aspect-ratio: 4/3;
  }

  .scene-title {
    font-size: 32px;
  }

  .scene-desc {
    font-size: 15px;
  }

  .process-outro {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px;
  }

  .outro-text {
    font-size: 18px;
  }

  .outro-cta {
    justify-content: center;
  }

  .qb {
    font-size: 11px;
    padding: 5px 10px;
  }

  .dash-card-num {
    font-size: 20px;
  }
}

/* prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {
  .qb, .laptop-screen::before, .coffee::before,
  .wb-line, .wb-arrow, .code-line, .code-cursor,
  .map-pin, .task-dot.pulse::before, .status-pulse::before,
  .sync-dot, .chart-line, .hb-line, .proto-bar-fill {
    animation: none;
  }
  .qb { opacity: 1; transform: none; }
  .code-line { opacity: 1; transform: none; }
}
