:root {
  color-scheme: light;
  font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --sidebar-width: clamp(240px, 26vw, 320px);
  --bg: #f5f7fb;
  --sidebar-bg: #101826;
  --sidebar-text: #f0f4ff;
  --accent: #4f46e5;
  --accent-soft: #e0e7ff;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --border: #e5e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: radial-gradient(circle at top left, #1f2a3d, #0b1220);
  color: var(--sidebar-text);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  max-height: 100vh;
}

.brand {
  font-size: clamp(28px, 2.8vw, 36px);
  margin: 0 0 8px;
}

.tagline {
  margin: 0 0 32px;
  font-size: 16px;
  color: rgba(240, 244, 255, 0.76);
}

.menu {
  display: grid;
  gap: 16px;
  font-size: 15px;
}

.menu a {
  color: rgba(240, 244, 255, 0.85);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 13px;
  color: rgba(240, 244, 255, 0.6);
}

.content {
  flex: 1;
  padding: 64px clamp(48px, 8vw, 120px);
  display: grid;
  gap: 48px;
}

.hero {
  background: #fff;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.hero p {
  margin: 0;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.4);
}

.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.15);
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid article {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.testimonial {
  background: linear-gradient(135deg, #312e81, #4338ca);
  color: #eef2ff;
  padding: 40px;
  border-radius: 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 20px 52px rgba(49, 46, 129, 0.35);
}

.testimonial blockquote {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.6;
}

.testimonial cite {
  font-style: normal;
  opacity: 0.85;
}

.contact-card {
  background: #fff;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  display: grid;
  gap: 20px;
  max-width: 640px;
}

.contact-card h3 {
  margin: 0;
}

.contact-card p {
  margin: 0;
  color: var(--text-secondary);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  color: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

@media (max-width: 960px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: auto;
    max-height: none;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: 24px;
  }

  .content {
    padding: 32px 24px 48px;
  }
}
