/* ==========================================================================
   Superfolio — stylesheet
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-card: #ffffff;
  --text: #14161f;
  --text-muted: #5b5f70;
  --border: #e7e8f0;
  --accent: #4a3aff;
  --accent-hover: #3a2ce0;
  --accent-soft: #eeecff;
  --accent-2: #16b3a3;
  --shadow: 0 4px 24px rgba(20, 22, 31, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 22, 31, 0.10);
  --code-bg: #14161f;
  --code-text: #e7e8f0;
}

html[data-theme='dark'] {
  --bg: #0f1016;
  --bg-alt: #16171f;
  --bg-card: #191a23;
  --text: #f1f2f7;
  --text-muted: #9a9db0;
  --border: #262834;
  --accent: #7a6bff;
  --accent-hover: #948bff;
  --accent-soft: #201d3d;
  --accent-2: #2bd1bd;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --code-bg: #05060a;
  --code-text: #e7e8f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--text-muted); }

section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span.dot { color: var(--accent); }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo-mark svg { display: block; border-radius: 6px; }
.logo-text { white-space: nowrap; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.lang-dropdown {
  position: relative;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.lang-current:hover { border-color: var(--accent); }
.lang-current .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
  color: var(--text-muted);
}
.lang-dropdown.open .lang-current .chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 130px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.lang-dropdown.open .lang-menu { display: flex; }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu button:hover { background: var(--accent-soft); color: var(--accent); }
.lang-menu button.active { background: var(--accent-soft); color: var(--accent); }
.lang-menu .flag, .lang-current .flag { font-size: 1.05rem; line-height: 1; }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 55px 0 45px;
  text-align: center;
}
.hero .container { max-width: 820px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 12px;
}
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat .label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

.hero .container { max-width: 1140px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
  text-align: left;
  margin-bottom: 56px;
}
.hero-grid .eyebrow { margin-bottom: 18px; }
.hero-grid h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.hero-grid .lead { margin: 0 0 30px; max-width: 520px; }
.hero-grid .hero-ctas { justify-content: flex-start; margin-bottom: 0; }

.hero-visual img {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-visual .hero-stats {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
  margin: 14px 0 0;
  gap: 10px;
}
.hero-visual .stat {
  padding: 8px 10px;
  border-radius: 12px;
}
.hero-visual .stat .num { font-size: 1.1rem; margin-bottom: 1px; line-height: 1.15; }
.hero-visual .stat .label { font-size: 0.68rem; line-height: 1.15; }

.why-visual img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; }

/* ---------- Why / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.why-list li { display: flex; gap: 16px; }
.why-list .num-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-list h4 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.why-list p { margin: 0; font-size: 0.93rem; }

.mock-panel {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
}
.mock-panel .dots { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-panel .dots span { width: 10px; height: 10px; border-radius: 50%; background: #4a4d5c; }
.mock-panel .line { height: 10px; border-radius: 6px; background: #2c2e3a; margin-bottom: 10px; }
.mock-panel .line.short { width: 45%; }
.mock-panel .line.accent { background: var(--accent-2); width: 30%; }

/* ---------- Hosting ---------- */
.pricing-grid, .hosting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-card .badge {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card .price { font-size: 2.1rem; font-weight: 800; margin: 10px 0 4px; }
.price-card .price small { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.price-card ul { list-style: none; margin: 20px 0 26px; padding: 0; flex-grow: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.92rem; color: var(--text-muted); }
.price-card li .check { color: var(--accent-2); font-weight: 800; flex-shrink: 0; }

/* Pricing packages (2-column) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #fff;
}
.portfolio-info { padding: 20px 22px; }
.portfolio-info h3 { margin-bottom: 4px; }
.portfolio-info .tag { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.portfolio-info p { font-size: 0.88rem; margin-top: 8px; margin-bottom: 0; }

.thumb-1 { background: linear-gradient(135deg, #ff8a5c, #ff5c8a); }
.thumb-2 { background: linear-gradient(135deg, #4a3aff, #16b3a3); }
.thumb-3 { background: linear-gradient(135deg, #16b3a3, #4a3aff); }

.placeholder-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #7a3aff);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { opacity: 0.9; max-width: 520px; margin: 0 auto 30px; }
.cta-banner .btn-primary { background: #fff; color: var(--accent); }
.cta-banner .btn-primary:hover { background: #f1f2ff; }
.cta-banner .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-banner .btn-ghost:hover { border-color: #fff; }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h4 { margin: 0 0 2px; font-size: 0.95rem; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; display: block; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Process / How we work page ---------- */
.process-hero {
  padding: 45px 0 30px;
  text-align: center;
}
.process-hero .container { max-width: 720px; }

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  position: relative;
  padding-bottom: 44px;
}
.timeline-step:last-child { padding-bottom: 0; }
.step-marker {
  position: absolute;
  left: -56px;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 1;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-left: 8px;
}
.timeline-card h3 { margin-bottom: 8px; }
.timeline-card p { margin-bottom: 12px; font-size: 0.95rem; }
.step-marker svg {
  width: 26px;
  height: 26px;
}
.step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 56px auto 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: 10px; }
.info-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .pricing-grid, .hosting-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-grid .hero-ctas { justify-content: center; }
  .hero-grid .lead { margin-left: auto; margin-right: auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .grid, .pricing-grid, .hosting-grid, .portfolio-grid, .packages-grid { grid-template-columns: 1fr; }
  section { padding: 30px 0; }
  .hero { padding: 35px 0 30px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .timeline { padding-left: 44px; }
  .timeline::before { left: 21px; }
  .step-marker { left: -44px; width: 44px; height: 44px; font-size: 0.9rem; }
  .timeline-card { padding: 20px 20px; margin-left: 4px; }
  .info-cards { grid-template-columns: 1fr; }
}
