/* MIOPS Teknoloji — static site
   No external resources, no inline styles (CSP: style-src 'self'). */

:root {
  --bg: #0e0d0f;
  --bg-1: #151519;
  --bg-2: #1d1e20;
  --bg-3: #2c2c2e;
  --text: #ffffff;
  --text-muted: #bababa;
  --text-soft: rgba(255, 255, 255, 0.67);
  --primary: #e37969;
  --primary-active: #d86756;
  --radius: 14px;
  --radius-lg: 24px;
  --header-h: 72px;
  --wide: 1200px;
  --content: 760px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Poppins", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-active); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--content) + 2 * var(--gutter)); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(14, 13, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(14, 13, 15, 0.78); backdrop-filter: blur(12px); }
}
.page-home .site-header:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; backdrop-filter: none; }
/* backdrop-filter would become the containing block of the fixed mobile panel */
.site-header.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.nav-open { overflow: hidden; }

.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--text); padding: 8px; margin-right: -8px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a,
.main-nav .submenu-toggle {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--text); font: inherit; font-size: 0.95rem; font-weight: 500;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover,
.main-nav .submenu-toggle:hover { color: var(--primary); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--primary); }
.submenu-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }

.has-submenu { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--bg-2); border: 1px solid var(--bg-3); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-submenu:hover .submenu-toggle svg,
.has-submenu.is-open .submenu-toggle svg { transform: rotate(180deg); }
.submenu a { padding: 10px 12px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); padding: 16px var(--gutter) 40px; overflow-y: auto;
    display: none;
  }
  .site-header.is-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .main-nav .submenu-toggle { width: 100%; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--bg-2); border-radius: 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; }
  .submenu-toggle svg { display: none; }
}

/* ---------- Generic blocks ---------- */
main { display: block; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-1); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--text-soft); }
.section-head .eyebrow { display: block; color: var(--text-soft); font-size: 1rem; margin-bottom: 0.4em; }
.h-sub { display: block; color: var(--text-soft); font-weight: 500; font-size: 0.62em; margin-top: 0.3em; }
.full-bleed img { width: 100%; height: auto; }
.section-head h2 + h3 { color: var(--text-soft); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }

/* Decorative wavy separator, tinted with gradients (mask = the original separator shape). */
.separator {
  display: block; width: 180px; height: 20px; margin: 0 auto 24px;
  -webkit-mask: url("../img/separator.webp") center / contain no-repeat;
  mask: url("../img/separator.webp") center / contain no-repeat;
  background: linear-gradient(90deg, #c7005a, #fff278);
}
.separator--purple-yellow { background: linear-gradient(90deg, #a020f0, #fcff41); }
.separator--purple-green { background: linear-gradient(90deg, #b33cff, #8cff9f); }
.separator--cyan { background: linear-gradient(90deg, #2e8bff, #6ed5ee); }
.separator--yellow { background: linear-gradient(90deg, #f7c948, #f0ed5d); }
.separator--midnight { background: linear-gradient(90deg, #3d5afe, #00a5ff); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: transparent; color: var(--primary); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Feature grid */
.features { display: grid; gap: clamp(28px, 4vw, 40px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.feature { text-align: center; padding: 0 6px; }
.feature img { width: 68px; height: 68px; object-fit: contain; margin: 0 auto 18px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.45em; }
.feature p { color: var(--text-soft); font-size: 0.98rem; margin: 0; }
@media (max-width: 1000px) { .features, .features--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features, .features--3, .features--5 { grid-template-columns: minmax(0, 1fr); } }

.media { margin: clamp(40px, 6vw, 64px) auto 0; border-radius: var(--radius-lg); overflow: hidden; }
.media--plain { border-radius: 0; }
.media video, .media img { width: 100%; }
.media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 6vw, 64px); }
.media-pair .media { margin: 0; }
@media (max-width: 700px) { .media-pair { grid-template-columns: minmax(0, 1fr); } }

.banner-img { width: 100%; height: auto; }

/* ---------- Home ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px; text-align: center; color: var(--text); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 28, 28, 0.55); }
.hero h1, .hero h2 { color: #fefefe; font-size: clamp(2.1rem, 5.2vw, 3.75rem); max-width: 22ch; margin: 0 auto 0.5em; text-transform: capitalize; }
.hero h1 span { display: block; }
.hero p { color: rgba(255, 255, 255, 0.82); max-width: 760px; margin: 0 auto; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero--photo::after { background: rgba(28, 28, 28, 0.45); }
.hero--photo h2 { max-width: 18ch; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stat { background: var(--bg-1); border: 1px solid var(--bg-2); border-radius: var(--radius); padding: 36px 16px; text-align: center; }
.stat:nth-child(2) { border-radius: var(--radius-lg); }
.stat strong { display: block; color: var(--text); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }

.testimonial { text-align: center; max-width: 860px; margin: 0 auto; }
.testimonial__quote {
  display: block; width: 56px; height: 56px; margin: 0 auto 24px;
  -webkit-mask: url("../img/quote.webp") center / contain no-repeat;
  mask: url("../img/quote.webp") center / contain no-repeat;
  background: linear-gradient(135deg, #c7005a, #fff278);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { color: var(--text); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }
.testimonial .stars { width: 130px; margin: 24px auto 12px; }
.testimonial figcaption { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Product pages ---------- */
.product-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px); text-align: center; }
.product-hero .app-icon { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 26px; }
.product-hero h1 span { display: block; }
.product-hero h1 .sub,
.product-hero .subtitle { display: block; color: var(--text-soft); font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 1.75rem); margin-top: 0.35em; }
.product-hero .lead { max-width: 780px; margin: 0 auto; color: var(--text-soft); }
.product-hero .media { max-width: 1100px; }
.product-hero .phone { max-width: 360px; margin: clamp(40px, 6vw, 64px) auto 0; }

.rating { text-align: center; }
.rating .count { color: var(--text-soft); margin: 0 0 0.2em; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.review { background: var(--bg-2); border: 1px solid var(--bg-3); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.review .stars { width: 110px; margin-bottom: 16px; }
.review blockquote { margin: 0 0 18px; flex: 1; }
.review blockquote p { margin: 0; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.review figcaption strong { color: var(--text); }
.review figcaption span::before { content: "•"; margin-right: 10px; color: var(--text-soft); }
@media (max-width: 900px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Simple pages (contact / support / privacy) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: var(--text);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 13, 15, 0.55); }
.page-hero h1 { margin: 0; }

.prose { color: var(--text-muted); }
.prose h2 { margin-top: 2.2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.1rem; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.55em; }
.prose a { overflow-wrap: anywhere; }
.prose .intro { color: var(--text); font-size: 1.1rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--bg-1); border: 1px solid var(--bg-2); border-radius: var(--radius); padding: 28px; }
.contact-card h2 { font-size: 1.3rem; }
.contact-card address { font-style: normal; margin-bottom: 1.2em; }
.contact-card strong { color: var(--text); }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.form .optional { color: var(--text-soft); font-weight: 400; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-1);
  border: 1px solid var(--bg-3); border-radius: 10px; padding: 12px 14px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(227, 121, 105, 0.25); }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; margin: 0; color: var(--text-soft); }
.form-status.is-error { color: #ff8a80; }
.form-note { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

.support-links { list-style: none; padding: 0; margin: 2em 0 0; }
.support-links a { display: inline-flex; }
.cta { text-align: center; }
.cta .app-icon { width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 22px; }
.cta .lead { max-width: 780px; margin: 0 auto; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--bg-2); padding: clamp(48px, 7vw, 80px) 0 0; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: 1.1fr 1.4fr 0.8fr; gap: clamp(28px, 5vw, 56px); }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 1em; }
.site-footer address { font-style: normal; }
.site-footer address strong { color: var(--text); display: block; margin-bottom: 4px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-3); color: #fff; transition: background-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { background: var(--primary); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--bg-2); padding: 20px 0 28px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-menu a { color: var(--text-muted); }
.footer-menu a:hover { color: var(--primary); }
.copyright { margin: 0; color: var(--text-soft); font-size: 0.88rem; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); color: #fff; border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 48px) 0 72px; }
.spaced { margin-top: clamp(40px, 6vw, 64px); }
