/* SMS Gateway — sms-gateway.dev */
:root {
  --blue: #1565d8;
  --blue-dark: #0d47a1;
  --green: #2ea44f;
  --orange: #f58634;
  --ink: #16233b;
  --muted: #5b6b84;
  --bg: #f6f9ff;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(21, 101, 216, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e3ebfa;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--blue-dark); }
.brand-name span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(46, 164, 79, .12), transparent),
    radial-gradient(800px 500px at -10% 10%, rgba(245, 134, 52, .10), transparent),
    linear-gradient(160deg, #eaf2ff 0%, #f6f9ff 60%);
  padding: 80px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-block; background: #fff; border: 1px solid #cfe0fb;
  color: var(--blue-dark); font-weight: 700; font-size: .8rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: 18px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 26px; max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue-dark); border: 1.5px solid #cfe0fb; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-block { width: 100%; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-weight: 600; }
.hero-visual img { border-radius: 24px; box-shadow: 0 24px 60px rgba(21, 101, 216, .22); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 48px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  border: 1px solid #eaf0fb;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21, 101, 216, .16); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.5rem; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, #e3eeff, #e6f7ec);
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li {
  background: var(--bg); border: 1px solid #e3ebfa; border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid .section-title, .contact-grid .section-sub { text-align: left; margin-left: 0; }
.contact-dev { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.contact-dev img { width: 52px; height: 52px; object-fit: contain; }
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid #eaf0fb;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #d7e3f7; font: inherit; color: var(--ink);
  background: #fbfdff; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form-status.success { color: var(--green); }
.form-status.error { color: #c62828; }

/* ---------- Legal page ---------- */
.legal-main { min-height: 60vh; }
.legal-container { max-width: 820px; }
.legal-container .section-title, .legal-container .section-sub { text-align: center; }
.legal-tabs { display: flex; gap: 10px; justify-content: center; margin: 34px 0 18px; flex-wrap: wrap; }
.legal-tab {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid #cfe0fb;
  background: #fff; font: inherit; font-weight: 700; color: var(--blue-dark); cursor: pointer;
}
.legal-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.legal-meta { text-align: center; color: var(--muted); font-size: .85rem; min-height: 1.2em; margin-bottom: 10px; }
.legal-lang { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.lang-btn {
  padding: 6px 16px; border-radius: 999px; border: 1px solid #cfe0fb;
  background: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted);
}
.lang-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.legal-content {
  background: #fff; border-radius: var(--radius); border: 1px solid #eaf0fb;
  box-shadow: var(--shadow); padding: 40px;
}
.legal-content h1 { font-size: 1.6rem; margin: 18px 0 12px; }
.legal-content h2 { font-size: 1.25rem; margin: 26px 0 10px; color: var(--blue-dark); }
.legal-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-content h4 { font-size: .95rem; margin: 16px 0 6px; }
.legal-content p { margin-bottom: 12px; color: #33415c; }
.legal-content ul { margin: 0 0 14px 22px; color: #33415c; }
.legal-content li { margin-bottom: 6px; }
.legal-content hr { border: none; border-top: 1px solid #e3ebfa; margin: 24px 0; }
.legal-loading { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: #dbe7ff; padding: 48px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #fff; font-weight: 600; opacity: .85; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: .85rem; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px;
    border-bottom: 1px solid #e3ebfa; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .legal-content { padding: 24px; }
}
