/* ===== SafeRound Website Styles ===== */
/* Color palette: spreadsheet green + clean whites */

:root {
  --green-primary: #34a853;
  --green-dark: #2d8f47;
  --green-light: #e8f5e9;
  --green-subtle: #f1f8f2;
  --white: #ffffff;
  --off-white: #fafbfc;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-500: #80868b;
  --gray-700: #5f6368;
  --gray-900: #202124;
  --grid-line: #e2e5e9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--green-dark); }

/* ===== Grid background pattern (spreadsheet feel) ===== */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gray-900);
}
.nav-logo svg {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green-primary);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-subtle) 0%, var(--off-white) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge svg {
  width: 16px;
  height: 16px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--green-primary);
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(52,168,83,0.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52,168,83,0.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
}
.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-500);
  color: var(--gray-900);
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== Section Layout ===== */
.section {
  padding: 72px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-header p {
  color: var(--gray-700);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green-primary);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--gray-700);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ===== How It Works (Steps) ===== */
.steps-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 8px;
}
.step p {
  color: var(--gray-700);
  font-size: 0.93rem;
}

/* ===== Formula Banner ===== */
.formula-banner {
  background: var(--gray-900);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}
.formula-banner .formula-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.formula-banner .formula-bar .fx {
  color: var(--green-primary);
  font-weight: 700;
}
.formula-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-center {
  display: flex;
  align-items: center;
}
.footer-center img {
  display: block;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}
.footer-left svg {
  width: 24px;
  height: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--green-primary);
}

/* ===== Contact Page ===== */
.page-hero {
  padding: 56px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-subtle) 0%, var(--off-white) 100%);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.page-hero h1 {
  position: relative;
  font-size: 2.2rem;
  font-weight: 700;
}
.page-hero p {
  position: relative;
  color: var(--gray-700);
  margin-top: 8px;
}

.contact-form-wrapper {
  max-width: 560px;
  margin: -20px auto 60px;
  padding: 0 24px;
  position: relative;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--off-white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(52,168,83,0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Privacy & Terms Page ===== */
.legal-content {
  max-width: 740px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.legal-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-light);
}
.legal-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 24px 0 8px;
  color: var(--gray-900);
}
.legal-card p,
.legal-card li {
  color: var(--gray-700);
  font-size: 0.93rem;
  line-height: 1.65;
}
.legal-card ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-card li {
  margin-bottom: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .legal-card { padding: 28px 22px; }
  .contact-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 16px 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .section { padding: 48px 16px; }
}
