/* Ana sayfa */

/* HERO ---------------------------------------------------------------- */
.home-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 72% 48%, rgba(255, 233, 196, .75) 0%, rgba(255, 244, 226, .35) 40%, transparent 70%),
    linear-gradient(180deg, #F3F5F9 0%, #F7F5F1 60%, #FFFFFF 100%);
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 96px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-mountains {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 30%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 30%, #000 55%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 24px; }
.hero-title { font-size: clamp(2.8rem, 5.8vw, 5rem); line-height: 1; letter-spacing: -.028em; margin-bottom: 26px; }
.hero-lead { max-width: 520px; color: var(--ink-2); }
.hero-copy .btn-row { margin-top: 34px; }
.hero-copy .btn-lg { --h: 56px; }
.hero-copy .trust-row { gap: 12px 22px; }
@media (min-width: 1181px) {
  /* Tasarımdaki gibi tek satır; sağdaki diyagramın boş sol alt köşesine taşabilir */
  .hero-copy .trust-row { flex-wrap: nowrap; width: max-content; position: relative; z-index: 1; }
}

/* Yörünge diyagramı */
.hero-orbit { position: relative; margin-right: calc(var(--gutter) * -0.5); }
.orbit { position: relative; width: 100%; aspect-ratio: 720 / 440; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-arcs path { stroke-dasharray: 160; stroke-dashoffset: 0; }
.js .hero-orbit:not(.is-in) .orbit-arcs path { stroke-dashoffset: 160; }
.orbit-arcs path { transition: stroke-dashoffset 1.2s var(--ease) .4s; }

.orbit-core {
  position: absolute; left: 45.83%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 30%;
}
.orbit-star { width: 52%; height: auto; filter: drop-shadow(0 8px 18px rgba(176, 116, 38, .35)); animation: star-breathe 6s ease-in-out infinite; }
@keyframes star-breathe { 50% { transform: scale(1.04) rotate(3deg); } }
.orbit-name { margin-top: 6px; font-family: var(--font-serif); font-size: clamp(14px, 1.45vw, 19px); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.orbit-tag { margin-top: 4px; font-size: clamp(8px, .72vw, 10px); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

.orbit-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: clamp(76px, 7.4vw, 96px); aspect-ratio: 1; border-radius: 18px;
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(200, 146, 74, .18);
  box-shadow: 0 16px 36px -18px rgba(120, 80, 20, .45), 0 2px 6px rgba(14, 26, 47, .06);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.orbit-node:hover { transform: translate(-50%, -50%) translateY(-4px); box-shadow: 0 22px 40px -18px rgba(120, 80, 20, .55), 0 2px 6px rgba(14, 26, 47, .06); }
.orbit-node .ic { width: 30%; height: auto; aspect-ratio: 1; color: var(--gold); stroke-width: 1.6; margin-bottom: 4px; }
.orbit-node.n-loop .ic { color: var(--c-loop); }
.orbit-node.n-studio .ic { color: var(--c-studio); }
.orbit-node b { font-size: clamp(10px, .9vw, 12.5px); font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.orbit-node span { font-size: clamp(10px, .85vw, 12px); font-weight: 600; color: var(--gold); }
.orbit-node.n-loop span { color: var(--c-loop); }
.orbit-node.n-studio span { color: var(--c-studio); }
.n-memory { left: 45.83%; top: 15.9%; }
.n-studio { left: 68.06%; top: 50%; }
.n-gate { left: 45.83%; top: 84.1%; }
.n-loop { left: 23.61%; top: 50%; }

.orbit-cap { position: absolute; font-size: clamp(11px, .95vw, 13px); line-height: 1.5; color: var(--ink-2); }
.cap-memory { left: 55.5%; top: 1%; width: 26%; }
.cap-studio { left: 76.5%; top: 42%; width: 23.5%; }
.cap-gate { left: 54.5%; top: 83%; width: 30%; }
.cap-loop { left: -5.5%; top: 39%; width: 20.5%; text-align: right; }

/* ÜRÜNLER ------------------------------------------------------------- */
.home-products { padding-top: clamp(48px, 5vw, 72px); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.product-card {
  --c: var(--gold);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 25%, var(--line)); }
.product-info { display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.product-ic { color: var(--c); margin-bottom: 10px; }
.product-ic .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.product-card h3 { font-size: 20px; letter-spacing: -.02em; }
.product-role { font-size: 13px; font-weight: 600; color: var(--c); margin-top: 2px; }
.product-desc { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 10px 0 12px; }
.product-card .link-more { font-size: 13px; color: var(--ink); }
.product-media { position: relative; height: 128px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-media img.pm-left { object-position: left center; transform-origin: left center; }
.product-card:hover .product-media img { transform: scale(1.05); }

/* Reklam kreatifi: temiz fotoğraf + HTML metin (dile göre çevrilebilir) */
.pm-ad { background: linear-gradient(135deg, #F6F1E9 0%, #ECE3D4 100%); }
.pm-ad img { position: absolute; right: 0; top: 0; width: 46%; height: 100%; object-fit: cover; object-position: center 42%; }
.pm-ad-copy { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 54%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; color: #22301F; }
.pm-ad-copy b { font-family: var(--font-serif); font-size: 17px; font-weight: 600; line-height: 1.1; }
.pm-ad-copy span { font-size: 10.5px; font-weight: 600; line-height: 1.3; }
.pm-ad-copy i { margin-top: 8px; font-style: normal; font-size: 8.5px; font-weight: 700; color: #fff; background: #2E4A33; padding: 4px 8px; border-radius: 4px; }

.pm-dark { background: radial-gradient(120% 120% at 100% 0%, #1E2E58 0%, #0C1630 60%); color: #fff; text-align: left; padding: 12px 14px; display: flex; flex-direction: column; }
.pm-head { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.pm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.pm-quote { font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-top: 12px; }
.pm-input { margin-top: auto; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-size: 9.5px; color: rgba(255, 255, 255, .55); }
.pm-input .ic { width: 12px; height: 12px; color: #B79BFF; }
.pm-voice { flex-direction: row; gap: 12px; padding: 12px; }
.pm-channels { display: flex; flex-direction: column; gap: 7px; }
.pm-channels li { display: grid; place-items: center; width: 24px; height: 24px; }
.pm-channels .brand { width: 22px; height: 22px; }
.pm-x { background: #fff; border-radius: 6px; }
.pm-x .brand { width: 13px !important; height: 13px !important; color: #000; }
.pm-voice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.pm-chip { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--c); font-size: 8.5px; font-weight: 700; }
.pm-chip .ic { width: 10px; height: 10px; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pm-voice .pm-quote { margin-top: 10px; }
.pm-lines { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.pm-lines i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.pm-lines i:last-child { width: 60%; }

/* Bölüm başlığı yan metni tasarımdaki gibi daha küçük (3 satır) */
.page-home .section-head-aside p { font-size: 15px; line-height: 1.6; max-width: 440px; }

/* AKIŞ ---------------------------------------------------------------- */
.home-flow { padding-top: 0; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.flow-step { position: relative; display: flex; gap: 12px; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 25px; right: 2px; width: 22px; height: 12px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12' fill='none' stroke='%230E1A2F' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h19M15 1l5 5-5 5'/%3E%3C/svg%3E");
}
.flow-ic {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; flex: none;
  color: var(--orange); background: radial-gradient(circle at 30% 30%, #FFF6EC, #FDEBD7); border: 1px solid #F6D9B8;
}
.flow-ic .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.flow-no { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin: 2px 0 6px; }
.flow-step h3 { font-size: 15px; letter-spacing: -.01em; margin-bottom: 8px; padding-right: 22px; }
.flow-step p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* GÜVEN --------------------------------------------------------------- */
.home-secure { padding-block: clamp(44px, 4.6vw, 64px); background: radial-gradient(80% 120% at 0% 0%, #13274A 0%, var(--navy) 55%); }
.secure-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 24px 48px; align-items: center; }
.secure-copy h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); margin-bottom: 18px; }
.secure-copy p:not(.eyebrow) { font-size: 17px; margin-bottom: 30px; max-width: 420px; }
.secure-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; padding-left: 48px; border-left: 1px solid rgba(255, 255, 255, .12); }
.secure-list li { display: flex; gap: 16px; }
.secure-list .ic { width: 32px; height: 32px; color: var(--gold-300); stroke-width: 1.4; flex: none; }
.secure-list h3 { font-size: 15px; margin-bottom: 6px; letter-spacing: -.005em; }
.secure-list p { font-size: 13.5px; line-height: 1.55; }
.secure-more { grid-column: 2; padding-left: 48px; }
.secure-more .link-more { color: var(--gold-300); }

/* VAKA ---------------------------------------------------------------- */
.home-cases { background: var(--bg-soft); padding-block: clamp(36px, 4vw, 56px); }
.cases-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cases-grid h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.cases-grid p:not(.eyebrow) { color: var(--text); }
.case-soon { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: 14px; background: #E9ECF1; }
.case-ic { display: grid; place-items: center; width: 52px; height: 52px; color: var(--muted); }
.case-ic .ic { width: 38px; height: 38px; stroke-width: 1.3; }
.case-soon b { display: block; color: var(--ink); font-size: 15px; }
.case-soon span { font-size: 13.5px; color: var(--muted); }

/* KAPANIŞ ------------------------------------------------------------- */
.home-final {
  position: relative; overflow: hidden; isolation: isolate; color: rgba(255, 255, 255, .78);
  --horizon: calc(100% - clamp(84px, 8vw, 116px));
  background: #040B1C; padding: clamp(56px, 6vw, 88px) 0 clamp(96px, 9vw, 132px);
}
.final-sky {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 28% 12%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 30%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1px 1px at 63% 14%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 26%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 91% 10%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1px 1px at 6% 48%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1px 1px at 86% 44%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(90% 70% at 30% 100%, #173362 0%, transparent 60%);
}
.final-planet {
  position: absolute; left: -20%; right: -20%; top: var(--horizon); height: 900px; border-radius: 50%;
  background: radial-gradient(40% 16% at 50% 0%, #2D5CA8 0%, #0F2550 55%, #06122B 100%);
  box-shadow: 0 -1px 0 rgba(255, 222, 170, .9), 0 -8px 24px rgba(255, 196, 120, .45), 0 -40px 120px rgba(90, 140, 255, .35);
}
/* Ufuktaki güneş + mercek parlaması (tasarımdaki gündoğumu) */
.final-sun {
  position: absolute; left: 50%; top: var(--horizon); width: min(56%, 760px); height: 120px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 244, 222, 1) 0%, rgba(255, 214, 150, .75) 14%, rgba(255, 180, 100, .28) 45%, rgba(255, 160, 80, 0) 100%);
  mix-blend-mode: screen;
}
.final-sun::before, .final-sun::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.final-sun::before { width: 2px; height: 300%; background: linear-gradient(180deg, rgba(255, 236, 200, 0) 0%, rgba(255, 236, 200, .85) 50%, rgba(255, 236, 200, 0) 100%); }
.final-sun::after { width: 100%; height: 2px; background: linear-gradient(90deg, rgba(255, 230, 190, 0) 0%, rgba(255, 238, 205, .95) 50%, rgba(255, 230, 190, 0) 100%); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.final-motto { font-size: clamp(22px, 2.8vw, 36px); font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: #fff; line-height: 1.45; }
.final-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; color: #fff; }
.final-copy p { font-size: 17px; max-width: 520px; margin-bottom: 30px; }

/* Duyarlı ------------------------------------------------------------- */
@media (max-width: 1180px) {
  /* 3 + 2 yerleşim: alt satır ortalanır (yetim boşluk kalmaz) */
  .product-grid, .flow { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .product-card, .flow-step { grid-column: span 2; }
  .product-card:nth-child(4), .flow-step:nth-child(4) { grid-column: 2 / span 2; }
  .flow { row-gap: 36px; }
  .flow-step::after { display: none; }
  .flow-step h3 { padding-right: 0; }
  .page-home .section-head-aside { flex-direction: column; align-items: flex-start; gap: 14px; }
  .secure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Diyagram bu genişlikte yan sütuna sığmıyor: alta alınır */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-orbit { margin: 12px auto 0; max-width: 680px; width: 100%; }
  .hero-mountains { height: 38%; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 980px) {
  .secure-grid { grid-template-columns: 1fr; }
  .secure-list { padding-left: 0; border-left: 0; }
  .secure-more { grid-column: 1; padding-left: 0; }
  .cases-grid, .final-grid { grid-template-columns: 1fr; }
  .home-final { --horizon: calc(100% - 64px); padding-bottom: 120px; }
  .final-sun::before { display: none; }
}
@media (max-width: 640px) {
  /* Dar ekranda kare yerleşim: SVG yaylar yerine CSS halka */
  .orbit-cap, .orbit-lines { display: none; }
  .orbit { aspect-ratio: 1; max-width: 340px; margin-inline: auto; }
  .orbit::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1.5px dashed rgba(200, 146, 74, .5); }
  .orbit::after { content: ""; position: absolute; inset: 22%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 231, 191, .95), rgba(255, 239, 214, 0)); }
  .orbit-core { left: 50%; width: 42%; }
  .orbit-node { width: 72px; border-radius: 16px; }
  .n-memory { left: 50%; top: 12%; }
  .n-studio { left: 88%; top: 50%; }
  .n-gate { left: 50%; top: 88%; }
  .n-loop { left: 12%; top: 50%; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-card:nth-child(4) { grid-column: auto / span 2; }
  .product-card:nth-child(5) { grid-column: 2 / span 2; }
  .flow { grid-template-columns: 1fr; }
  .flow-step, .flow-step:nth-child(4) { grid-column: auto; }
  .secure-list { grid-template-columns: 1fr; }
  .trust-row { gap: 12px 20px; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(n) { grid-column: auto; }
}
