/* ==========================================================================
   Restosi Landing — Warm Paper + Geist
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  /* Warm paper palette */
  --paper: #FBF7F0;
  --paper-2: #F4EEE2;
  --paper-3: #EBE3D2;
  --ink: #1A1613;
  --ink-2: #3A332C;
  --ink-3: #6B6055;
  --ink-4: #A39889;
  --line: #E6DDC9;
  --line-2: #D4C9B0;

  /* Accent — warm orange */
  --accent: #E8662A;
  --accent-deep: #C84D16;
  --accent-soft: #FBE4D3;
  --accent-tint: #FFF2E6;

  /* Secondary */
  --leaf: #3F6B4A;
  --berry: #9A3B3B;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26,22,19,0.04), 0 2px 6px rgba(26,22,19,0.04);
  --shadow-md: 0 6px 16px -4px rgba(26,22,19,0.08), 0 2px 4px rgba(26,22,19,0.04);
  --shadow-lg: 0 24px 48px -16px rgba(26,22,19,0.18), 0 8px 16px -8px rgba(26,22,19,0.10);
}

html { background: var(--paper); }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

/* Subtle warm ambient wash */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232,102,42,0.04), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(63,107,74,0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ========== NAV ========== */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(230,221,201,0.6);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.nav-logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.nav-logo-mark svg { width: 40px; height: 40px; display: block; }
.nav-logo-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--accent); }

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

.lang-switch {
  display: inline-flex; align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  transition: all .15s;
  letter-spacing: 0.03em;
}
.lang-switch:hover { border-color: var(--ink-3); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-3); }

.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ========== HERO ========== */
.hero {
  padding: 48px 0 32px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,102,42,0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}

h1.hero-title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
h1.hero-title em::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: 6%;
  height: 14%;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 520px;
}

.hero-cta {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-meta {
  margin-top: 32px;
  display: flex; gap: 32px; flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13px;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
}
.hero-meta-item svg {
  width: 16px; height: 16px;
  color: var(--accent);
}

/* ========== HERO ANIMATION ========== */
.hero-viz {
  position: relative;
  height: 560px;
  display: flex; align-items: center; justify-content: center;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.shape-1 { top: 40px; left: 20px; width: 80px; height: 80px; background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 4px, transparent 4px, transparent 8px); border: 2px solid var(--accent-soft); }
.shape-2 { bottom: 60px; right: 10px; width: 120px; height: 120px; border: 2px dashed var(--line-2); background: transparent; }
.shape-3 { top: 20%; right: 15%; width: 40px; height: 40px; background: var(--accent); opacity: 0.1; }
.shape-4 { bottom: 20%; left: 8%; width: 56px; height: 56px; border: 2px solid var(--leaf); opacity: 0.15; background: transparent; }

/* Phone frame */
.phone {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 520px;
  background: var(--ink);
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px;
  background: var(--ink);
  border-radius: 10px;
  z-index: 10;
}
.phone-top {
  padding: 34px 16px 12px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.phone-top-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 13px;
}
.phone-top-info { flex: 1; min-width: 0; }
.phone-top-name { font-weight: 600; font-size: 13px; }
.phone-top-table { font-size: 11px; color: var(--ink-3); }

.phone-body {
  flex: 1; overflow: hidden;
  padding: 12px 14px;
  position: relative;
}

.menu-item {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.4s forwards;
}
.menu-item:nth-child(1) { animation-delay: 0.2s; }
.menu-item:nth-child(2) { animation-delay: 0.5s; }
.menu-item:nth-child(3) { animation-delay: 0.8s; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.menu-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
}
.menu-info { flex: 1; min-width: 0; }
.menu-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.menu-desc { font-size: 10px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.menu-price { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 3px; }
.menu-add {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
  align-self: center;
  flex-shrink: 0;
  transition: transform .15s;
}
.menu-add.tap {
  animation: tap 0.5s ease;
}
@keyframes tap {
  0%, 100% { transform: scale(1); background: var(--ink); }
  50% { transform: scale(0.85); background: var(--accent); }
}

.phone-cart {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.phone-cart.show { transform: translateY(0); }
.phone-cart-label { font-size: 11px; opacity: 0.7; }
.phone-cart-total { font-size: 14px; font-weight: 600; }
.phone-cart-btn {
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Data flow */
.dataflow {
  position: absolute;
  left: 260px;
  right: 280px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  z-index: 1;
  background-image: linear-gradient(to right, var(--line-2) 50%, transparent 50%);
  background-size: 10px 2px;
}
.dataflow::before {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
  animation: flow 3s ease-in-out infinite;
}
@keyframes flow {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* KDS (Kitchen Display) */
.kds {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0.5deg);
  width: 280px;
  background: var(--ink);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.kds-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.kds-title {
  color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em;
}
.kds-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: #79e081;
  font-family: 'Geist Mono', monospace;
}
.kds-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #79e081;
  animation: pulse 1.5s infinite;
}
.kds-ticket {
  background: #2a2421;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 6px;
  color: #fff;
  opacity: 0;
  transform: translateX(20px);
  animation: ticketIn 0.5s cubic-bezier(.2,.8,.2,1) forwards;
}
.kds-ticket:nth-child(2) { animation-delay: 1s; }
.kds-ticket:nth-child(3) { animation-delay: 2s; }
.kds-ticket:nth-child(4) { animation-delay: 3s; }
@keyframes ticketIn {
  to { opacity: 1; transform: translateX(0); }
}
.kds-ticket-head {
  display: flex; justify-content: space-between;
  font-size: 10px;
  margin-bottom: 6px;
}
.kds-ticket-table {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  color: var(--accent);
}
.kds-ticket-time {
  color: rgba(255,255,255,0.5);
  font-family: 'Geist Mono', monospace;
}
.kds-ticket-line {
  font-size: 11px;
  line-height: 1.35;
  min-height: 18px;
  color: rgba(255,255,255,0.85);
  padding: 2px 0;
  display: flex; gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kds-ticket-qty {
  font-family: 'Geist Mono', monospace;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ========== SECTION HEADERS ========== */
.section { padding: 80px 0; position: relative; }
.section-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 720px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-3);
  max-width: 620px;
}

/* ========== FEATURES ========== */
.features-bg {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: 32px;
  position: relative;
  transition: background .2s;
}
.feature:hover { background: var(--paper-2); }
.feature-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ========== HOW IT WORKS ========== */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 16%;
  right: 16%;
  height: 2px;
  background-image: linear-gradient(to right, var(--line-2) 50%, transparent 50%);
  background-size: 8px 2px;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  background: var(--paper);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.step h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 260px;
}

/* ========== DEMO / INTERACTIVE ========== */
.demo-live-bg {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.demo-live-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232,102,42,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.demo-live-bg .section-eyebrow { color: var(--accent); }
.demo-live-bg .section-title { color: var(--paper); }
.demo-live-bg .section-sub { color: rgba(251,247,240,0.65); }

.demo-live-stage {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 48px;
  align-items: start;
}

/* ========== FORM ========== */
.form-bg {
  background: var(--paper-2);
}
.demo-form-wrap {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.demo-form {
  display: flex; flex-direction: column; gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.demo-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
}
.demo-form input,
.demo-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.demo-form textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.form-success {
  text-align: center;
  padding: 28px;
  background: #E9F0EA;
  border: 1px solid #B8D1BE;
  border-radius: var(--r-md);
  color: var(--leaf);
}
.form-error {
  text-align: center;
  padding: 14px;
  background: #FBECEC;
  border: 1px solid #ECC8C8;
  border-radius: var(--r-md);
  color: var(--berry);
  font-size: 13px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--ink);
  color: var(--ink-4);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo-name { color: var(--paper); }
.footer-brand p { font-size: 14px; margin-top: 14px; line-height: 1.55; color: rgba(251,247,240,0.5); }
.footer-col h5 { color: var(--paper); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(251,247,240,0.55); font-size: 14px; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(251,247,240,0.1);
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: rgba(251,247,240,0.4);
}

/* ========== LANG ========== */
[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="en"] [data-lang="tr"] { display: none; }
span[data-lang], a[data-lang] { display: none; }
span[data-lang="tr"], a[data-lang="tr"] { display: inline; }
html[lang="en"] span[data-lang="tr"], html[lang="en"] a[data-lang="tr"] { display: none; }
html[lang="en"] span[data-lang="en"], html[lang="en"] a[data-lang="en"] { display: inline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-viz { height: 500px; margin-top: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .demo-live-stage { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .phone { width: 220px; height: 440px; }
  .kds { width: 240px; }
  .demo-form-wrap { padding: 24px; }
  .section { padding: 60px 0; }
}
