/* ============================================================
   ossysoft.com — tek sayfa vitrin sitesi
   Renk/tipografi mantığı: koyu lacivert + mavi vurgu,
   Playfair Display başlıklar, keskin (2px) butonlar.
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-2: #16213c;
  --blue: #2174ea;
  --blue-light: #5696ff;
  --gray-bg: #f1f5f9;
  --heading: #1e293b;
  --muted: #64748b;
  --on-dark: #f8fafc;
  --on-dark-muted: #94a3b8;
  --green: #10b981;
  --whatsapp: #25d366;
  --border: #e2e8f0;
  --container: 1152px;
  --radius: 2px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--heading);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); }

.btn-ghost { background: #2c3a55; color: var(--on-dark); }
.btn-ghost:hover { background: #3a4a68; }

.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1fb857; }
.btn-whatsapp svg { width: 20px; height: 20px; }

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand-logo { height: 30px; width: auto; }

.main-nav { display: none; gap: 1.75rem; }
.main-nav a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover { color: #fff; }

.header-cta { display: none; }

@media (min-width: 900px) {
  .main-nav, .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobil menü */
.nav-toggle {
  background: none;
  border: none;
  width: 40px; height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--on-dark);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .nav-toggle { display: none; } }

@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(15, 23, 42, .98);
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  padding: 172px 0 150px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(33, 116, 234, .22) 0%, transparent 65%);
  pointer-events: none;
}
/* Logodaki S dalgasını andıran diyagonal ışık çizgisi */
.hero-wave {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(86, 150, 255, .07) 47%, rgba(248, 250, 252, .05) 50%, rgba(33, 116, 234, .07) 53%, transparent 58%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-content { max-width: 720px; }
.hero-kicker {
  color: var(--blue-light);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--on-dark-muted);
  max-width: 560px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Açılı alt kenar */
.hero-angle {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ---------- Bölüm ortak ---------- */
.section { padding: 96px 0; position: relative; }
.section-light { background: #fff; }
.section-gray { background: var(--gray-bg); }
.section-dark { background: var(--navy); color: var(--on-dark); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: .75rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--on-dark-muted); }

.section-angle-bottom {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
.section-dark .section-angle-bottom { z-index: 1; }
#projeler { padding-bottom: 150px; }

/* ---------- Karşılaştırma tablosu ---------- */
.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.compare-table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: 1.25rem;
  vertical-align: middle;
}
.compare-table tbody th {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--heading);
}
.compare-table td { color: var(--muted); }
.compare-table .ossy-col {
  background: rgba(33, 116, 234, .05);
  border-left: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  color: var(--heading);
}
.compare-table thead .ossy-col { border-top: 2px solid var(--blue); }
.compare-table tbody tr:last-child .ossy-col { border-bottom: 2px solid var(--blue); }
.table-logo { height: 22px; width: auto; }
.mark.yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .12);
  color: var(--green);
  font-weight: 700;
}
.mark.maybe { color: var(--muted); font-size: .9rem; }

/* ---------- Hizmet kartları ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(33, 116, 234, .1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Projeler ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
}
.project-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .08);
}
.project-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.project-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform .4s ease;
}
.project-shot:hover img { transform: scale(1.03); }
.project-shot-overlay {
  position: absolute;
  right: 1rem; bottom: 1rem;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.project-shot:hover .project-shot-overlay { opacity: 1; transform: translateY(0); }
.project-info { padding: 1.75rem; }
.project-info h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.project-info p { color: var(--on-dark-muted); margin-bottom: 1.1rem; max-width: 60ch; }
.project-link {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 500;
}
.project-link:hover { color: #fff; }

/* ---------- Fiyat kartları ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 16px 40px rgba(33, 116, 234, .12);
}
.badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--green);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .35rem .9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.price { margin-bottom: .5rem; }
.amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--heading);
}
.amount-custom { font-size: 2rem; color: var(--blue); }
.price-desc { color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }
.price-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.price-features li {
  position: relative;
  padding: .45rem 0 .45rem 1.9rem;
  color: var(--heading);
  font-size: .95rem;
  border-bottom: 1px solid var(--gray-bg);
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: .45rem;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Hakkımda ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .about-inner { grid-template-columns: auto 1fr; } }
.about-mark {
  width: 150px; height: 150px;
  flex-shrink: 0;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, .25));
}
.about-icon { width: 100%; height: 100%; object-fit: contain; }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; max-width: 62ch; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--heading); }
.about-text em { color: var(--heading); }

/* ---------- İletişim ---------- */
.contact-section { padding-bottom: 110px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; } }

.contact-form {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.contact-form label { display: block; margin-bottom: 1.1rem; }
.contact-form label span {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  margin-bottom: .4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.contact-form textarea { resize: vertical; }
.contact-form select:invalid { color: var(--on-dark-muted); }
.form-status { margin-top: 1rem; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #f87171; }

.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 1.75rem;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.contact-card p { color: var(--on-dark-muted); font-size: .95rem; margin-bottom: 1rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-mail { color: var(--blue-light); text-decoration: none; font-weight: 500; }
.contact-mail:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1222;
  color: var(--on-dark-muted);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
}
.footer-logo { height: 26px; width: auto; margin-bottom: .9rem; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: .92rem;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: var(--on-dark-muted); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---------- Alt sayfa (gizlilik/KVKK) ---------- */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  padding: 148px 0 110px;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: .9rem;
  max-width: 720px;
}
.page-hero p { color: var(--on-dark-muted); font-size: 1.05rem; max-width: 620px; }
.page-hero .hero-angle { height: 60px; }

.legal { scroll-margin-top: 72px; }
.legal-inner { max-width: 760px; }
.legal h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: .5rem;
}
.legal-updated { color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.legal h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 1.75rem 0 .5rem;
}
.legal p { color: var(--muted); margin-bottom: .75rem; }
.legal p strong { color: var(--heading); }
.legal a { color: var(--blue); }
.legal ul {
  margin: .5rem 0 .75rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.legal ul li { margin-bottom: .35rem; }

/* ---------- Sabit WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Scroll animasyonu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(2) { transition-delay: .12s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .24s; }

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