/* ───── Laravel blueprint sistemi ─────
 * border-t (solid gri) → section'lar arası yatay ayraç
 * .rails → container'a eklenince xl:border-x dashed verir (≥1280px)
 * .rails > i.tl/tr/bl/br → container'ın 4 köşesinde 7×7 teal kare
 */

/* Section üst ayırıcı — solid 1px */
.bp { position: relative; border-top: 1px solid var(--line); }
.bp:first-of-type,
section.hero.bp { border-top: 0; }

/* Container'a eklenen sınıf: xl'de L/R dashed dikey + 4 köşe kare */
.rails { position: relative; }

@media (min-width: 1280px) {
  .rails {
    border-left: 1px dashed var(--rail-color);
    border-right: 1px dashed var(--rail-color);
  }
}

.rails > i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  z-index: 2;
  display: none;
}

@media (min-width: 1280px) {
  .rails > i { display: block; }
}

.rails > i.tl { top: -4px;    left: -4px; }
.rails > i.tr { top: -4px;    right: -4px; }
.rails > i.bl { bottom: -4px; left: -4px; }
.rails > i.br { bottom: -4px; right: -4px; }

/* Dikey padding container'da — rails tüm yüksekliği kaplasın, arada "havada" boşluk kalmasın */
.container.rails {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.hero .container.rails {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.strip .container.rails {
  padding-top: 36px;
  padding-bottom: 36px;
}

.band-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.band-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.12;
}

.band-head p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--fg-muted);
}


/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand img {
  height: 45px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--fg-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-item[data-open="true"] .nav-link {
  color: var(--ink);
  background: var(--bg-sunken);
}

.nav-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.45;
}

.nav-link.no-caret::after { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.search-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.search-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-muted);
}

/* ───── Mega-menu ───── */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-item[data-open="true"] .mega {
  display: grid;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
}

.mega.mega-wide {
  position: fixed;
  top: 68px;
  left: 50%;
  right: auto;
  width: min(900px, calc(100vw - 48px));
  min-width: 0;
  max-width: calc(100vw - 48px);
  transform: translateX(-50%) translateY(6px);
}
.nav-item[data-open="true"] .mega.mega-wide {
  transform: translateX(-50%) translateY(0);
}
.mega.mega-wide .mega-link {
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 10px 12px;
  align-items: start;
}
.mega.mega-wide .mega-link .mega-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 14px;
}
.mega-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }

@media (max-width: 980px) {
  .mega-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.mega-link {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.mega-link:hover {
  background: var(--bg-muted);
}

.mega-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.mega-link > span:last-child { display: block; }

.mega-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.mega-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ───── Hero ───── */
.hero {
  padding: 0;
  position: relative;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  text-align: left;
  max-width: 540px;
}

.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: var(--ink);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy > p {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 460px;
}

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

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(39, 130, 136, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(39, 130, 136, 0); }
}

/* ───── Slogan + logo şeridi (Laravel "Powering ideas" muadili) ───── */
.strip {
  padding: 0;
  background: #fff;
}

.strip > .container {
  padding: 0 clamp(12px, 1.8vw, 28px);
}

.strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.strip-slogan {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fg-soft);
  line-height: 1.55;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee {
  position: relative;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 2px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.brand-chip img {
  height: 92px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.brand-chip:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
}

@media (max-width: 768px) {
  .strip-inner { grid-template-columns: 1fr; text-align: center; }
  .strip-slogan { white-space: normal; text-align: center; }
  .track { gap: 20px; }
  .brand-chip img { height: 64px; }
}

/* ───── Başlık bandı ───── */
.band-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0;
}

.band-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.12;
}

.band-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.band-head p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--fg-muted);
}

/* ───── Nora AI — büyük chat sahne ───── */
.nora {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-muted) 100%);
  padding: 0;
}

.nora-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.nora-head h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.nora-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.nora-head p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--fg-muted);
}

.chat-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.chat-stage .chat {
  min-height: 560px;
  box-shadow: var(--shadow-lg), 0 0 0 1px #18181b;
}

.chat-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nora-quote {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.nora-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  cursor: pointer;
  flex: 1;
}

.nora-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nora-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.2);
  transition: opacity 0.2s ease;
}

.nora-thumb:hover::after { opacity: 0; }

.nora-thumb-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ───── Analytics cards ───── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title h3 {
  font-size: 1.05rem;
  color: var(--ink);
}

.card-title .pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-body {
  display: grid;
  gap: 14px;
}

.card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--fg-soft);
  font-size: 0.85rem;
}

/* ───── Architecture ───── */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
}

.arch-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.arch-card h3 { margin-bottom: 8px; }
.arch-card p { font-size: 0.95rem; }

/* ───── Solutions (Çözümlerimiz) ───── */
#solutions .arch-grid,
#arch .arch-grid {
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: row;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  margin-left: calc(clamp(24px, 4.5vw, 64px) * -1);
  margin-right: calc(clamp(24px, 4.5vw, 64px) * -1);
}
#solutions .solutions-group {
  margin-left: calc(clamp(24px, 4.5vw, 64px) * -1);
  margin-right: calc(clamp(24px, 4.5vw, 64px) * -1);
  padding-left: clamp(24px, 4.5vw, 64px);
  padding-right: clamp(24px, 4.5vw, 64px);
}
#solutions .arch-card,
#arch .arch-card {
  background: #fff;
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--line);
  padding: 28px;
}
#solutions .arch-grid .arch-card:last-child,
#arch .arch-grid .arch-card:last-child { border-right: none; }
#solutions .arch-icon,
#arch .arch-icon {
  background: var(--bg-muted);
}
@media (max-width: 820px) {
  #solutions .arch-card,
  #arch .arch-card { border-right: none; }
  #solutions .arch-card:last-child,
  #arch .arch-card:last-child { border-bottom: none; }
}

.solutions-group {
  margin: 36px 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted, #6b7280);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.solutions-group:first-of-type { margin-top: 12px; border-top: none; padding-top: 0; }

/* ───── Neden Biz? (compare) ───── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.compare-col {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
}
.compare-new {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.compare-new .compare-tag {
  background: #0b455b;
  color: #fff;
  border-color: #0b455b;
}
.compare-head { margin-bottom: 18px; }
.compare-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.compare-head h3 { font-size: 1.25rem; margin: 0; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid rgba(0,0,0,.06);
}
.compare-new .compare-list li { border-top-color: rgba(0,0,0,.06); }
.compare-list li:first-child { border-top: none; }
.compare-old .compare-list li::before {
  content: "×";
  position: absolute; left: 4px; top: 8px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: #b91c1c; font-weight: 700;
}
.compare-new .compare-list li::before {
  content: "✓";
  position: absolute; left: 4px; top: 10px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: #7ee3a8; font-weight: 700;
}
.compare-cta { margin-top: 28px; text-align: center; }

@media (max-width: 820px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ───── Docs strip ───── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.doc-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.2s ease;
  background: #fff;
}

.doc-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.doc-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.doc-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.doc-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.doc-arrow { color: var(--fg-soft); }
.doc-card:hover .doc-arrow { color: var(--accent); }

/* ───── Footer ───── */
.site-footer {
  background: #0a0a0a;
  color: #a1a1aa;
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #27272a;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #a1a1aa;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: #a1a1aa;
  font-size: 0.93rem;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #71717a;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  .hero-copy > p { max-width: none; }
  .hero-frame { aspect-ratio: 16 / 10; }
  .chat-stage { grid-template-columns: 1fr; }
  .chat-stage .chat { min-height: 500px; }
  .arch-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .search-btn span, .search-btn kbd { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .partners-row { gap: 16px; }
  .partners-row span { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; gap: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
