:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --accent: #0071e3;
  --border: #d2d2d7;
  --radius: 18px;
  --max: 1100px;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #1c1c1e;
  --text: #f5f5f7;
  --text-soft: #98989d;
  --border: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background-color 0.3s ease;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .nav {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-cta { color: #1d1d1f; }

[data-theme="dark"] .service-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .process-step,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .portfolio-card {
  background: var(--bg-soft);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-list li { border-top-color: rgba(255, 255, 255, 0.08); }

[data-theme="dark"] .btn-secondary:hover { background: #2c2c2e; }

[data-theme="dark"] .theme-toggle-track { background: #48484a; }

.nav, .service-card, .faq-item, .process-step, .contact-item, .portfolio-card, .btn-secondary {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 300;
  transition: width 0.1s ease-out;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: flex-end;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-word { white-space: nowrap; }
.logo-dim { color: var(--text-soft); font-weight: 400; }

.logo-icon {
  height: 1.3em;
  width: 1.3em;
  margin-right: 0.1em;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.nav-links a { color: var(--text); opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active, .nav-mobile a.active { opacity: 1; font-weight: 700; }

.nav-cta {
  font-size: 13px;
  background: var(--text);
  color: #fff;
  padding: 7px 16px;
  border-radius: 980px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.8; }

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

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-track {
  display: block;
  width: 44px;
  height: 25px;
  background: #d2d2d7;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle[aria-checked="true"] .theme-toggle-track {
  background: var(--accent);
}
.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(19px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  gap: 14px;
  font-size: 15px;
}
.nav-mobile.open { display: flex; }

/* Hero */
.hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}

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

.badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.availability-badge,
.viewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 6px 14px;
}

.availability-dot,
.viewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.availability-dot {
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: availability-pulse 2s infinite;
}

.viewer-dot {
  background: #0071e3;
  box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.5);
  animation: viewer-pulse 2s infinite;
}

@keyframes availability-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes viewer-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-sub strong {
  font-weight: 600;
  color: var(--text);
}

.br-desktop { display: block; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
}
.btn-secondary:hover { background: #e8e8ed; }

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.12), transparent 70%);
  pointer-events: none;
  transform: translate(calc(-50% + var(--glow-x, 0px)), var(--glow-y, 0px));
  transition: transform 0.4s ease-out;
}

/* Sections */
section { padding: 100px 24px; }

.section-head {
  text-align: center;
  max-width: var(--max);
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p {
  font-size: 19px;
  color: var(--text-soft);
  margin: 0;
}

/* Services */
.services { background: var(--bg-soft); }

.service-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.service-card-featured { position: relative; }

.service-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 980px;
}

.service-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-top h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.price span {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.price .price-old {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-soft);
  text-decoration: line-through;
  margin-right: 6px;
}

.price .price-try {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
  text-align: right;
  margin-top: 2px;
  white-space: nowrap;
}

.service-desc {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.service-list li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0 6px 20px;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.service-list li:first-child { border-top: none; }
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Why */
.why { background: var(--bg-soft); padding-bottom: 220px; }

.why-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.why-text h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.why-text p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 16px;
  text-align: justify;
}
.why-text p:last-of-type { margin-bottom: 0; }

.why-text p.why-closing {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-top: 28px;
}

/* About */
.about { background: var(--bg-soft); padding-bottom: 220px; }

.about-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.about-text p {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 16px;
  text-align: justify;
}
.about-text p.about-closing {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 28px auto 24px;
}

@media (max-width: 720px) {
  .about { padding-bottom: 120px; }
}

/* Process */
.process { background: var(--bg-soft); }

.process-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.process-step h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.process-step p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.process-cta {
  text-align: center;
  margin: 94px auto 0;
}
.process-cta p {
  font-size: 19px;
  color: var(--text-soft);
  margin: 0 0 20px;
}

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

/* FAQ */
.faq { background: var(--bg-soft); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 4px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item p a { color: var(--accent); text-decoration: underline; }

/* Portfolio */
.portfolio { background: var(--bg-soft); }

.portfolio-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.portfolio-preview {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-preview-canfit { background: linear-gradient(135deg, #0a0a0a, #8f0d21); }
.portfolio-preview-janpitza { background: linear-gradient(135deg, #050507, #ff5533); }
.portfolio-preview-astrolojivakti { background: linear-gradient(135deg, #0a0a0a, #e50914); }
.portfolio-preview-ikitekeriz { background: linear-gradient(135deg, #0a0a0c, #ff6b1a); }
.portfolio-preview-diyettemiyiz { background: linear-gradient(135deg, #2f9e6e, #ff8a5c); }
.portfolio-preview-degeriniogren { background: linear-gradient(135deg, #1064bc, #ffe800); }
.portfolio-preview-neredenyiyelim { background: linear-gradient(135deg, #1a0f0a, #d94f30); }

.portfolio-live-badge {
  position: absolute;
  top: 34px;
  right: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}

.browser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
}
.browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.portfolio-preview-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.portfolio-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s ease;
}
.portfolio-visit-btn:hover { gap: 10px; }

.portfolio-body { padding: 24px 28px; }

.portfolio-tag {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.portfolio-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

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

/* Contact */
.contact { background: var(--bg); color: var(--text); text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.contact > .contact-inner > p {
  color: var(--text-soft);
  font-size: 18px;
  margin: 0 0 40px;
}

.contact-inner p.response-note {
  font-size: 13px;
  color: var(--text-soft);
  opacity: 0.75;
  margin: -36px 0 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 360px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}
.contact-item:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }

.contact-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}
.contact-icon svg { width: 100%; height: 100%; fill: var(--text); }

.contact-text { flex: 1; text-align: left; }

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.contact-value {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.contact-form {
  margin-top: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  flex: 1;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.form-submit {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.form-status {
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}
.form-status.success { color: #1a7f37; }
.form-status.error { color: #d1242f; }
[data-theme="dark"] .form-status.success { color: #63e6be; }
[data-theme="dark"] .form-status.error { color: #ff8a8a; }

@media (max-width: 560px) {
  .form-row { flex-direction: column; }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 560px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* 404 */
.not-found { text-align: center; }
.not-found-inner { max-width: 480px; margin: 0 auto; }
.not-found-code {
  font-size: 80px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin: 0;
}
.not-found h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}
.not-found > .not-found-inner > p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0 0 32px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
  color: var(--text-soft);
  background: #1d1d1f;
}
.footer a { color: inherit; text-decoration: underline; opacity: 0.85; }
.footer a:hover { opacity: 1; }

/* Legal */
.legal { max-width: 720px; margin: 0 auto; }
.legal-inner h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.legal-inner h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.legal-inner p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}
.legal-inner a { color: var(--accent); text-decoration: underline; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 999;
  animation: confetti-fall 1.1s ease-out forwards;
}
@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* Responsive */
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions { margin-left: auto; margin-right: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .br-desktop { display: inline; }
  section { padding: 72px 20px; }
  .hero { padding: 96px 20px 72px; }
  .why { padding-bottom: 120px; }
}
