:root {
  --bg: #fdfdfd;
  --fg: #0f0f0f;
  --muted: #4c4c4c;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #111;
  --glass: rgba(255, 255, 255, 0.75);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.7;
  animation: drift 14s linear infinite;
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 60%);
  animation: float 11s ease-in-out infinite alternate;
}

.orb-left {
  top: -120px;
  left: -80px;
}

.orb-right {
  bottom: -140px;
  right: -100px;
  animation-delay: 1.5s;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7vw;
  backdrop-filter: blur(12px);
  background: rgba(253, 253, 253, 0.82);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand .dot {
  width: 12px;
  height: 12px;
  background: var(--fg);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(0,0,0,0.08);
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  font-weight: 600;
}

.lang-toggle:hover,
.lang-toggle.active {
  border-color: var(--fg);
  transform: translateY(-1px);
}

.pill {
  border: 1px solid var(--fg);
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.pill:hover {
  background: var(--fg);
  color: #fff;
}

main {
  position: relative;
  z-index: 1;
  padding: 40px 7vw 90px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
  padding: 70px 0 50px;
}

.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

.lede {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--fg);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button.primary {
  background: var(--fg);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  background: #000;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  isolation: isolate;
}

.hero-card::before,
.hero-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(0,0,0,0.08), transparent 35%, rgba(0,0,0,0.08), transparent 70%);
  animation: spin 14s linear infinite;
  opacity: 0.3;
  z-index: 0;
}

.hero-card::after {
  animation-direction: reverse;
  animation-duration: 18s;
  mix-blend-mode: multiply;
}

.hero-slogan {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  text-align: center;
  max-width: 520px;
  line-height: 1.3;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.tools {
  padding: 40px 0 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.14);
}

.tool-card .actions {
  margin-top: auto;
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.05), transparent 40%);
  pointer-events: none;
}

.tool-tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.tool-card h3 {
  margin: 0 0 12px;
}

.tool-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.tool-card ul {
  margin: 0 0 16px 16px;
  padding: 0;
  color: var(--fg);
}

.tool-card li {
  margin-bottom: 8px;
}

.tool-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.tool-card .button {
  min-width: 160px;
  min-height: 44px;
  line-height: 1.1;
  justify-content: center;
}

.tool-card .inline {
  color: var(--muted);
  font-size: 14px;
}

/* Keep both tool buttons in ghost style and aligned */
.tool-card .button.primary {
  background: var(--fg);
  color: #fff;
  box-shadow: var(--shadow);
}

.tool-card .button.primary:hover {
  background: #000;
  color: #fff;
}

.process {
  padding: 60px 0 40px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), transparent 45%);
  opacity: 0;
  transition: opacity 250ms ease;
}

.step:hover::before {
  opacity: 1;
}

.step-id {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.details {
  padding: 40px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-label {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-card p {
  color: var(--muted);
  margin: 0;
}

.contact {
  padding: 60px 0 20px;
}

.contact-inner {
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 16px 7vw 30px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(253,253,253,0.92);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(18px); }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 28px 28px; }
}

@keyframes pulse {
  0% { transform: scale(0.96); opacity: 0.3; }
  50% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(0.96); opacity: 0.3; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar {
    padding: 14px 5vw;
  }

  main {
    padding: 20px 5vw 60px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}
