/* ============================================================
   TabEasy — Landing Page Styles
   Referans: Restoran QR Menü Açılış Sayfası / TabEasy Landing
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --bg:           #0a0a0b;
  --bg2:          #111114;
  --ink:          #f5f5f7;
  --mute:         #8b8b93;
  --line:         rgba(255, 255, 255, .08);
  --orange:       #D97440;
  --orange2:      #E88652;
  --orange-glow:  rgba(217, 116, 64, .35);
  --glass:        rgba(255, 255, 255, .04);
  --glass-b:      rgba(255, 255, 255, .09);
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #050506;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
}

p { color: var(--mute); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #0a0a0b;
}
.btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--orange-glow);
  color: #0a0a0b;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* --- GLASS --- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b);
  border-radius: 20px;
}

/* --- SECTION EYEBROW --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes scan-y {
  0%, 100% { top: 6px; }
  50%       { top: calc(100% - 8px); }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes phone-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-8deg) translateY(0); }
  50%       { transform: translate(-50%, -50%) rotate(-8deg) translateY(-10px); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.logo img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(217, 116, 64, .4), 0 8px 24px -8px var(--orange-glow);
  transition: transform .3s ease;
}
.logo:hover img { transform: rotate(-6deg) scale(1.05); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-login {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-login:hover { color: var(--ink); }

/* ============================================================
   HERO — Split Diagonal
   ============================================================ */
.hero {
  position: relative;
  padding: 60px 60px 80px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: 52%;
  width: 1px;
  background: var(--orange);
  transform: rotate(12deg);
  opacity: .3;
}
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 116, 64, .2), transparent 65%);
  transform: translateY(-50%);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--orange); }

.hero .sub {
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
}

/* Hero visual / scene */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 380px;
}

.scene {
  position: relative;
  width: 360px;
  height: 380px;
}

.scene .halo-bg {
  position: absolute;
  inset: -10% -10% 0 -10%;
  background: radial-gradient(circle at 50% 45%, rgba(217, 116, 64, .28) 0%, transparent 60%);
  filter: blur(24px);
  z-index: 0;
}

.scene .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(217, 116, 64, .28);
  border-radius: 50%;
  animation: spin 32s linear infinite;
}
.scene .orbit.o1 { width: 340px; height: 340px; }
.scene .orbit.o2 {
  width: 260px;
  height: 260px;
  animation-duration: 22s;
  animation-direction: reverse;
  border-color: rgba(217, 116, 64, .18);
}

.scene .orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
}
.scene .orbit.o1 .orbit-dot { top: -4px; left: calc(50% - 4px); }
.scene .orbit.o2 .orbit-dot { bottom: -4px; left: calc(50% - 4px); }

/* Phone */
.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 180px;
  height: 320px;
  border-radius: 28px;
  background: linear-gradient(180deg, #181820, #0e0e13);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 255, 255, .03);
  animation: phone-float 6s ease-in-out infinite;
  z-index: 3;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 5px;
  background: #000;
  border-radius: 3px;
}

.phone-screen {
  position: absolute;
  inset: 22px 12px 14px;
  border-radius: 16px;
  background: #0a0a0b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p-head {
  padding: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  justify-content: space-between;
}
.p-head::after { content: "● Canlı"; color: var(--orange); font-size: 8px; }

.qr-box {
  margin: 10px;
  flex: 1;
  background: #fff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 1px;
}
.qr-box b { background: #0a0a0b; border-radius: 1px; display: block; }
.qr-box b.off { background: transparent; }

.qr-box::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 12px var(--orange);
  animation: scan-y 2.4s ease-in-out infinite;
  z-index: 2;
}

.p-foot {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8px;
  color: var(--mute);
}
.p-foot .paybtn {
  background: var(--orange);
  color: #0a0a0b;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* Floating chips */
.chip {
  position: absolute;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.chip.c1 { top: 20px;    left: -10px;  animation: chip-float 5s ease-in-out infinite; }
.chip.c2 { top: 120px;   right: -30px; animation: chip-float 5s ease-in-out infinite .8s; }
.chip.c3 { bottom: 60px; left: -20px;  animation: chip-float 5s ease-in-out infinite 1.6s; }
.chip.c4 { bottom: 20px; right: 0;     animation: chip-float 5s ease-in-out infinite 2.4s; }

.table-base {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(217, 116, 64, .3), transparent 70%);
  filter: blur(8px);
  z-index: 1;
}

/* ============================================================
   HOW IT WORKS — Steps
   ============================================================ */
.steps-section {
  padding: 60px 60px;
  position: relative;
}

.steps-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 8px;
}

.steps-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--ink);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: .4;
}

.step {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-dot {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--orange);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--orange);
  position: relative;
}
.step-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
}

.step h4 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.step p  { font-size: 13px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-header {
  padding: 60px 60px 0;
  text-align: center;
}
.pricing-header h2 { font-size: 36px; margin-top: 8px; }
.pricing-header p  { margin-top: 8px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 60px 60px;
}

.pcard {
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-b);
  transition: all .3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--orange); }
.pcard.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 20px 60px -20px var(--orange-glow);
}

.pcard .tier {
  color: var(--orange);
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.pcard h4 { font-size: 20px; margin-bottom: 14px; color: var(--ink); }
.pcard .pdesc { font-size: 13px; margin-bottom: 18px; min-height: 56px; }
.pcard ul {
  list-style: none;
  font-size: 13px;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  flex: 1;
}
.pcard ul li::before {
  content: "● ";
  color: var(--orange);
  font-size: 8px;
  vertical-align: middle;
}

/* ============================================================
   TRUST BANNER
   ============================================================ */
.trust-wrap {
  padding: 32px 40px;
  margin: 0 60px 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 116, 64, .1);
  border: 1px solid rgba(217, 116, 64, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.trust-item h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--ink);
}
.trust-item p { font-size: 12px; color: var(--mute); margin: 0; line-height: 1.4; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 60px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-section h2 { font-size: 36px; margin-bottom: 12px; color: var(--ink); }
.contact-section .csub { margin-bottom: 24px; font-size: 15px; }

.clist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}
.clist li { display: flex; align-items: center; gap: 12px; color: var(--mute); }
.clist svg { color: var(--orange); flex-shrink: 0; }
.clist a { color: var(--mute); transition: color .2s; }
.clist a:hover { color: var(--orange); }

/* Contact form */
.contact-form-wrap {
  padding: 28px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: 32px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mute);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--mute); transition: color .2s; cursor: pointer; }
.foot-links a:hover { color: var(--orange); }

/* ============================================================
   LEGAL MODALS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #111114;
  border: 1px solid var(--glass-b);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--mute);
  font-size: 18px;
  cursor: pointer;
  transition: color .2s;
}
.modal-close:hover { color: var(--ink); }

.modal-back {
  display: none;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--mute);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: color .2s;
}
.modal-back:hover { color: var(--ink); }

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.legal-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-menu-list li button {
  width: 100%;
  background: none;
  border: none;
  color: var(--mute);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s, color .2s;
}
.legal-menu-list li button:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}
.legal-menu-arrow { color: var(--orange); }

.modal-content-text { font-size: 14px; color: var(--mute); line-height: 1.7; }
.modal-content-text p { margin-bottom: 12px; }
.modal-content-text p:last-child { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 40px 32px 60px; }
  .hero::before { display: none; }
  .hero-visual { min-height: 320px; }
  .scene { width: 300px; height: 320px; }

  .steps-section { padding: 40px 32px; }
  .pricing-header { padding: 40px 32px 0; }
  .price-grid { grid-template-columns: 1fr; padding: 24px 32px 40px; }
  .trust-wrap { margin: 0 32px 32px; }
  .contact-section { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .foot { padding: 24px 32px; }
  .nav { padding: 16px 32px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .cta-row { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .chip.c2, .chip.c4 { display: none; }
  .trust-wrap { flex-direction: column; margin: 0 16px 24px; padding: 20px; }
  .foot { flex-direction: column; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  .nav { padding: 14px 20px; }
}
