:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #e5e5e5;
  --text: #111111;
  --muted: #666666;
  --accent: #000000;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  z-index: 5;
}

.brand {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.brand span {
  color: #777777;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.top nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  padding: clamp(75px, 12vw, 150px) clamp(20px, 8vw, 120px);
  background: linear-gradient(135deg, #ffffff 65%, #f4f4f4);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: #666666;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.7rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.065em;
  max-width: 1000px;
  margin: 20px 0;
}

.hero h1 span {
  color: #777777;
}

.hero p {
  max-width: 580px;
  color: #555555;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 750;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.button:hover {
  background: #333333;
  transform: translateY(-1px);
}

.button.outline {
  background: #ffffff;
  color: #111111;
  border-color: #cccccc;
}

.button.outline:hover {
  background: #f4f4f4;
}

.button.small {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.section {
  padding: 70px clamp(20px, 7vw, 100px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section h2,
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
}

.card,
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.muted {
  color: var(--muted);
}

.cta {
  margin: 10px clamp(20px, 7vw, 100px) 70px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #f7f7f7;
}

footer {
  padding: 34px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: #555555;
  background: #ffffff;
}

footer a {
  margin-right: 18px;
}

.auth-wrap {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: #fafafa;
}

.auth-wrap .panel {
  width: min(100%, 480px);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: clamp(24px, 5vw, 36px);
  background: #ffffff;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.07);
}

h1 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.9rem;
  font-weight: 650;
}

input {
  width: 100%;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  color: #111111;
  font: inherit;
}

input:focus {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.tab {
  background: #ffffff;
  color: #111111;
  border: 1px solid #d5d5d5;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.tab:hover {
  border-color: #111111;
}

.tab.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.text-button {
  display: block;
  background: none;
  border: 0;
  color: #111111;
  text-decoration: underline;
  margin: 14px auto 0;
  cursor: pointer;
  font: inherit;
}

.notice {
  color: #444444;
  min-height: 1.5em;
  font-size: 0.92rem;
  margin-top: 14px;
}

.dashboard {
  min-height: 70vh;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 26px;
}

.phone {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-cards {
  margin-top: 26px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .top {
    align-items: flex-start;
  }

  .top nav {
    gap: 10px;
    justify-content: flex-end;
  }

  .top nav a {
    font-size: 0.82rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 75px;
  }
}
