/* Yaho Robotics – tanıtım sitesi */
@font-face {
  font-family: 'Geologica'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/geologica-latin-ext-full-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/geologica-latin-full-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Instrument'; font-display: swap; font-weight: 400; src: url(fonts/instrument-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument'; font-display: swap; font-weight: 400; src: url(fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument'; font-display: swap; font-weight: 500; src: url(fonts/instrument-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument'; font-display: swap; font-weight: 500; src: url(fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument'; font-display: swap; font-weight: 600; src: url(fonts/instrument-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument'; font-display: swap; font-weight: 600; src: url(fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --lobby: #0E3A35;      /* koyu lobi yeşili */
  --lobby-2: #1F5C54;    /* ekran camı */
  --sage: #CFE3DB;       /* soluk adaçayı */
  --mist: #E4EFEB;
  --porcelain: #F6F8F7;  /* soğuk beyaz */
  --brass: #C8A043;      /* yalnız eylemler */
  --brass-dark: #A9832C;
  --ink: #10201D;
  --steel: #4E625E;
  --display: 'Geologica', 'Segoe UI', system-ui, sans-serif;
  --text: 'Instrument', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-variation-settings: 'SHRP' 60; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 650; max-width: 22ch; }
h3 { font-size: 1.4rem; font-weight: 620; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--text); text-decoration: none; padding: 15px 24px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-small { padding: 10px 18px; font-size: .95rem; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #D8B257; }
.btn-ghost { border-color: rgba(246, 248, 247, .45); color: var(--porcelain); }
.btn-ghost:hover { border-color: var(--porcelain); }
.btn-ghost-dark { border-color: var(--lobby); color: var(--lobby); }
.btn-ghost-dark:hover { background: var(--lobby); color: var(--porcelain); }

/* ---------- üst çubuk ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter); background: var(--lobby); color: var(--porcelain);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; color: var(--sage); }
.brand-mark { width: 30px; height: 30px; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--sage); font-weight: 500; }
.top nav a:hover { color: var(--porcelain); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- açılış ---------- */
.hero {
  background: var(--lobby); color: var(--porcelain);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: end;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(16px, 2vw, 28px);
  max-width: none;
}
.hero-copy { align-self: center; padding-bottom: clamp(40px, 6vw, 90px); max-width: 620px; justify-self: end; width: 100%; }
.hero h1 { text-wrap: wrap; max-width: 12ch; font-size: clamp(2.4rem, 4.8vw, 4.1rem); font-weight: 650; letter-spacing: -0.035em; font-variation-settings: 'SHRP' 100; }
.lead { margin-top: 26px; font-size: 1.2rem; color: var(--sage); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-robot {
  margin: 0; width: min(100%, 640px); justify-self: start;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(12px, 2vw, 28px); align-items: end;
}
.hero-img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; object-position: bottom; }
.speech { align-self: start; margin-top: clamp(8px, 4vh, 48px); padding-bottom: 24px; }
.table-tag { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--sage); margin: 0 0 14px; }
.table-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #6FD3A8; box-shadow: 0 0 0 4px rgba(111, 211, 168, .18); }
.dialog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dialog li {
  max-width: 92%; padding: 11px 15px; border-radius: 18px; font-size: 1rem; line-height: 1.4;
}
.dialog .r { align-self: flex-end; background: var(--porcelain); color: var(--ink); border-bottom-right-radius: 6px; }
.dialog .m { align-self: flex-start; background: var(--lobby-2); color: var(--porcelain); border-bottom-left-radius: 6px; }
.dialog .done { background: var(--brass); }
.js .dialog li.wait { visibility: hidden; }
.js .dialog li.typing-on {
  visibility: visible; position: relative; color: transparent;
  background: rgba(246, 248, 247, .14);
}
.js .dialog li.typing-on::after {
  content: '• • •'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--sage); letter-spacing: 1px; animation: blink 1s infinite;
}
.js .dialog li.show { animation: pop .35s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.replay[hidden] { display: inline-block; visibility: hidden; }
.replay {
  margin-top: 14px; min-height: 28px; background: none; border: 0; color: var(--sage); font: 500 .9rem var(--text);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 4px;
}

/* ---------- robotlar ---------- */
.robots, .how, .where { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.robots h2 { margin-bottom: 44px; }
.robot { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.robot-art { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.robot-text p { margin-top: 12px; color: var(--steel); max-width: 52ch; }
.robot-main .robot-art { max-height: 460px; }
.robot-main {
  grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px);
  background: var(--sage); border-radius: 36px; padding: clamp(28px, 4vw, 52px);
}
.robot-main h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.robot-main .robot-text p { color: #2D4743; font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lobby) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' stroke='%23CFE3DB' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.robot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px); }
.robot-pair .robot { grid-template-columns: 130px 1fr; align-items: center; }
.robot-pair .robot-art { max-height: 300px; }

/* ---------- nasıl çalışır ---------- */
.how h2 { margin-bottom: 40px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--lobby); }
.steps li { counter-increment: s; padding: 26px 24px 0 0; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  margin: -47px 0 18px; background: var(--lobby); color: var(--porcelain); font: 700 1.05rem var(--display);
  border: 4px solid var(--porcelain);
}
.steps p { margin-top: 8px; color: var(--steel); }

/* ---------- nerede ---------- */
.places { margin: 36px 0 0; display: grid; gap: 0; }
.places > div { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid #C9D8D3; }
.places > div:first-child { border-top: 1px solid #C9D8D3; }
.places dt { font: 620 1.25rem var(--display); }
.places dd { margin: 0; color: var(--steel); }

/* ---------- iletişim ---------- */
.contact { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 130px) var(--gutter); }
.contact-inner { background: var(--mist); border-radius: 36px; padding: clamp(32px, 6vw, 72px); }
.contact h2 { max-width: 18ch; }
.contact p { margin-top: 18px; color: var(--steel); max-width: 52ch; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); background: var(--lobby); color: var(--sage); font-size: .95rem; }
.foot a { color: var(--sage); }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { justify-self: start; padding-bottom: 0; }
  .hero-robot { justify-self: center; margin-top: 12px; grid-template-columns: minmax(0, 1fr) 150px; }
  .hero-img { max-height: 420px; }
  .robot-main { grid-template-columns: 1fr; }
  .robot-main .robot-art { max-width: 220px; }
  .robot-pair { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; }
  .steps li { border-top: 2px solid var(--lobby); }
}
@media (max-width: 640px) {
  .top { gap: 14px; }
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .hero-robot { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-height: 340px; }
  .speech { margin-top: 0; }
  .robot, .robot-pair .robot { grid-template-columns: 96px 1fr; gap: 18px; }
  .robot-main { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .places > div { grid-template-columns: 1fr; gap: 6px; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .js .dialog li.show, .js .dialog li.typing-on::after { animation: none; }
}
