/* SEBS enterprise landing — scoped extras (Tailwind handles layout) */

:root {
  --sebs-ink: #0c1222;
  --sebs-mist: #f4f6fa;
  --sebs-accent: #2563eb;
  --sebs-accent-soft: rgba(37, 99, 235, 0.12);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .motion-safe\:animate-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero mesh — page backdrop */
.hero-mesh {
  background:
    radial-gradient(ellipse 90% 70% at 15% 10%, rgba(99, 102, 241, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(14, 165, 233, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 45%, #f8fafc 100%);
}

/* Remote-style inset hero: pastel wash + rounded shell */
.hero-remote-shell {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(167, 139, 250, 0.18) 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(56, 189, 248, 0.14) 0%, transparent 50%),
    radial-gradient(80% 60% at 50% 100%, rgba(52, 211, 153, 0.1) 0%, transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 45%, rgba(241, 245, 249, 0.95) 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -20px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-shell-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.92; }
  }
  .hero-remote-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 40% at 70% 30%, rgba(99, 102, 241, 0.08), transparent 70%);
    animation: hero-shell-shimmer 8s ease-in-out infinite;
  }
}

.hero-remote-inner {
  position: relative;
  z-index: 1;
}

/* Connector lines + floating labels (hero) */
.hero-visual-wrap {
  position: relative;
  min-height: 320px;
}

.hero-connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-connectors path,
.hero-connectors-contact path {
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.55;
}

.hero-connectors path {
  stroke: url(#sebs-line-grad);
}

.hero-connectors-contact path {
  stroke: url(#sebs-line-grad-contact);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes dash-move {
    to {
      stroke-dashoffset: -24;
    }
  }
  .hero-connectors path.hero-line-anim,
  .hero-connectors-contact path.hero-line-anim {
    stroke-dasharray: 6 6;
    animation: dash-move 14s linear infinite;
  }
}

.hero-float-label {
  position: absolute;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #475569;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.15);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes label-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  .hero-float-label {
    animation: label-drift 5s ease-in-out infinite;
  }
  .hero-float-label.delay-b {
    animation-delay: 1.2s;
  }
}

/* Glass mock layers */
.mock-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

/* İç kartlarda ek float yok — dış mock-float yeterli; çift hareket titremesini önler */

/* ---------- Interactive features (accordion + panel) ---------- */
.sebs-feat-grid {
  background-color: #f1f5f9;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sebs-accordion-item + .sebs-accordion-item {
  margin-top: 0.5rem;
}

.sebs-acc-block {
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.sebs-accordion-item.is-open .sebs-acc-block {
  border-color: rgba(127, 29, 29, 0.35);
  box-shadow: 0 16px 36px -18px rgba(92, 42, 42, 0.45);
}

.sebs-acc-btn {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 1rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: color 0.2s ease;
}

.sebs-accordion-item.is-open .sebs-acc-btn {
  background: linear-gradient(135deg, #5c2a2a 0%, #7f1d1d 100%);
  color: #fff;
  /* Başlık + özet ortada; ikon / chevron sütunlarda — “kaymış” hissi gider */
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.75rem;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  text-align: center;
}

.sebs-accordion-item.is-open .sebs-acc-btn .min-w-0.flex-1 {
  text-align: center;
}

/* modules.html / simulations.html: .tab-btn.active → styles.css mavi gradient ezmesin */
.modules-category-tabs .sebs-acc-btn.tab-btn::before,
.simulations-category-tabs .sebs-acc-btn.tab-btn::before {
  display: none !important;
  content: none !important;
}

.modules-category-tabs .sebs-accordion-item.is-open .sebs-acc-btn.tab-btn,
.modules-category-tabs .sebs-acc-btn.tab-btn.active,
.simulations-category-tabs .sebs-accordion-item.is-open .sebs-acc-btn.tab-btn,
.simulations-category-tabs .sebs-acc-btn.tab-btn.active {
  background: linear-gradient(135deg, #5c2a2a 0%, #7f1d1d 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.modules-category-tabs .sebs-accordion-item.is-open .sebs-acc-btn.tab-btn:hover,
.simulations-category-tabs .sebs-accordion-item.is-open .sebs-acc-btn.tab-btn:hover {
  background: linear-gradient(135deg, #5c2a2a 0%, #7f1d1d 100%) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.modules-category-tabs .sebs-accordion-item:not(.is-open) .sebs-acc-btn.tab-btn:hover,
.simulations-category-tabs .sebs-accordion-item:not(.is-open) .sebs-acc-btn.tab-btn:hover {
  color: #0f172a !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.sebs-acc-icon {
  flex-shrink: 0;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #2563eb;
  transition: background 0.2s ease, color 0.2s ease;
}

.sebs-accordion-item.is-open .sebs-acc-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  justify-self: center;
}

.sebs-acc-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.2s ease;
}

.sebs-accordion-item.is-open .sebs-acc-chevron {
  margin-left: 0;
  justify-self: end;
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.85);
}

.sebs-accordion-item.is-open [data-sebs-summary] {
  color: rgba(255, 255, 255, 0.82) !important;
}

.sebs-acc-panel {
  display: none;
  padding: 0 1rem 1.15rem 4.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
}

.sebs-accordion-item.is-open .sebs-acc-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, #5c2a2a 0%, #7f1d1d 100%);
  color: rgba(255, 255, 255, 0.92);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.sebs-accordion-item.is-open .sebs-acc-panel p {
  max-width: 36rem;
  margin: 0;
}

/* modules / simulations kategori kartları: özet metin üstte yapışmasın — CTA üstündeki alanda dikey ortalı */
.modules-category-tabs .sebs-accordion-item.is-open .sebs-acc-panel,
.simulations-category-tabs .sebs-accordion-item.is-open .sebs-acc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  justify-items: center;
  min-height: clamp(7.5rem, 14vw, 11rem);
  padding-top: 1.1rem;
  padding-bottom: 1.35rem;
  gap: 0;
}

.modules-category-tabs .sebs-accordion-item.is-open .sebs-acc-panel p,
.simulations-category-tabs .sebs-accordion-item.is-open .sebs-acc-panel p {
  grid-row: 1;
  align-self: center;
  justify-self: center;
}

.modules-category-tabs .sebs-accordion-item.is-open .sebs-acc-panel .sebs-acc-cta,
.simulations-category-tabs .sebs-accordion-item.is-open .sebs-acc-panel .sebs-acc-cta {
  grid-row: 2;
  margin-top: 0.9rem;
}

.sebs-acc-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #fff;
  color: #7f1d1d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.sebs-acc-cta:hover {
  transform: scale(1.05);
}

/* Visual stage */
.sebs-visual-stage {
  position: relative;
  min-height: 340px;
  border-radius: 1rem;
  overflow: hidden;
}

.sebs-visual-slide {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.sebs-visual-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .sebs-visual-slide.is-active .sebs-visual-card {
    animation: float-soft 9s ease-in-out infinite;
  }
}

.sebs-visual-card {
  width: 100%;
  max-width: 320px;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .sebs-visual-slide {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .hero-remote-shell::before {
    animation: none;
  }
  .hero-connectors path.hero-line-anim,
  .hero-connectors-contact path.hero-line-anim {
    animation: none;
  }
  .hero-float-label {
    animation: none;
  }
}

/* ---------- İletişim sayfası (ana sayfadan farklı yerleşim, aynı dil) ---------- */
.contact-hero-inner {
  max-width: 72rem;
}

.contact-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.contact-bento-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 16px 36px -22px rgba(15, 23, 42, 0.18);
}

.contact-bento-card-muted {
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.contact-tablist {
  scrollbar-width: thin;
}

.contact-tab-btn {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.6rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-tab-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.contact-tab-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .contact-tab-btn {
    transition: none;
  }
}

/* İletişim kanalları kartları — ikon yüzeyi + hafif hareket */
@keyframes contact-channel-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.contact-channel-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.contact-channel-card:hover {
  transform: translateY(-4px);
}

.contact-channel-icon-wrap {
  position: relative;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .contact-channel-card:hover .contact-channel-icon-wrap {
    animation: contact-channel-icon-float 2.8s ease-in-out infinite;
  }

  .contact-channel-card:nth-child(1) .contact-channel-icon-wrap {
    animation-delay: 0s;
  }
  .contact-channel-card:nth-child(2) .contact-channel-icon-wrap {
    animation-delay: 0.15s;
  }
  .contact-channel-card:nth-child(3) .contact-channel-icon-wrap {
    animation-delay: 0.3s;
  }
  .contact-channel-card:nth-child(4) .contact-channel-icon-wrap {
    animation-delay: 0.45s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel-card:hover {
    transform: none;
  }
  .contact-channel-card:hover .contact-channel-icon-wrap {
    animation: none;
  }
}

/* Çalışma saatleri satırları (contact-channel kartları içinde) */
.contact-channel-card .office-hours-rows {
  margin-top: 1.25rem;
  gap: 0.5rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }

/* Mock dashboard — subtle float */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mock-float {
  animation: float-soft 7s ease-in-out infinite;
}

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

/* Logo strip grayscale */
.logo-strip img,
.logo-strip span {
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.logo-strip a:hover img,
.logo-strip a:hover span {
  opacity: 0.85;
  filter: grayscale(0.3);
}

/* Focus rings — accessibility */
.focus-ring:focus-visible {
  outline: 2px solid var(--sebs-accent);
  outline-offset: 2px;
}

/* Scroll reveal (progressive enhancement) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
