/* ================= BASE ================= */
:root{
  --bg: #ffffff;
  --text: #111;
  --muted: #555;
  --card: #0f0f10;
  --accent: #288f9f;
  --border: #e6e6e6;
  --shadow: 0 12px 30px rgba(0,0,0,.18);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-device: 26px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* direction helpers (based on html dir) */
html[dir="rtl"] body{direction:rtl}
html[dir="ltr"] body{direction:ltr}

/* ================= HEADER ================= */
.page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 0;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:sticky;
  top:0;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(0,0,0,.06);
  padding:12px 0;
  z-index: 1000;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}
.brand-badge{
  width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg, var(--accent), #3bb2c6);
  box-shadow: 0 10px 18px rgba(40,143,159,.25);
}

.lang-btn{
  border:1px solid rgba(0,0,0,.12);
  background:#111;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
}

/* ================= HERO ================= */
.hero{
  padding: 22px 0 8px;
  text-align:center;
}
.hero h1{
  margin: 18px 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height:1.25;
}
.hero p{
  margin: 0 auto;
  max-width: 900px;
  line-height: 1.9;
  color: var(--muted);
  font-size: 16px;
}

/* ================= FORM ================= */
.mockup-form{
  max-width: 780px;
  margin: 18px auto 18px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.mockup-input{
  flex: 1 1 420px;
  min-width: 260px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline:none;
  font-size: 15px;
}
.mockup-input:focus{
  border-color: rgba(40,143,159,.6);
  box-shadow: 0 0 0 4px rgba(40,143,159,.12);
}

.mockup-btn{
  padding: 12px 18px;
  background: var(--accent);
  color:#fff;
  border:none;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
}
.mockup-btn:hover{filter:brightness(.95)}

/* ================= DEVICES WRAPPER ================= */
.mockup-wrapper{
  position:relative;
  min-height: 720px;
  padding: 20px 0 40px;
}

.inner-wrapper{
  position:relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= DEVICE CARD ================= */
.device{
  position:absolute;
  background: var(--card);
  border-radius: var(--radius-device);
  box-shadow: var(--shadow);
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
}

.device-inner{
  position:relative;
  width:100%;
  height:100%;
  background:#fff;
  border-radius: var(--radius-lg);
  overflow:hidden;
}

/* ================= FRAME ================= */
.frame{
  border:0;
  position:absolute;
  top:0;
  left:50%;
  width:1200px;
  height:2245px;
  transform-origin: top center;
  transform: translateX(-50%) scale(.21);
}

/* Desktop */
.desktop{width:720px;height:420px;left:70px;top:10px}
.desktop-frame{transform:translateX(-50%) scale(.60)}

/* Laptop */
.mac{width:540px;height:330px;left:520px;top:490px}
.mac-frame{transform:translateX(-50%) scale(.44)}

/* Tablet */
.ipad{width:280px;height:380px;left:150px;top:480px}
.ipad-frame{transform:translateX(-50%) scale(.23)}

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  .mockup-wrapper{min-height:auto}
  .device{
    position:relative;
    left:auto!important;
    top:auto!important;
    margin: 16px auto;
    width:min(92vw, 760px) !important;
    height: auto !important;
  }
  .device.desktop{height: 440px !important;}
  .device.mac{height: 380px !important;}
  .device.ipad{height: 420px !important;}
}

/* ================= CONTENT SECTIONS ================= */
.section{
  max-width: 900px;
  margin: 196px auto;
  padding: 0 4px;
  line-height: 1.95;
}
.section h2{
  margin: 0 0 10px;
  font-size: 22px;
}
.section p{color: var(--muted); margin: 0 0 14px;}

details{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
  background:#fff;
}
summary{cursor:pointer;font-weight:700}
details p{margin:10px 0 0}
