/* Revly — one-page site */
:root {
  --green: #1f9d5b;
  --green-dark: #157a45;
  --green-deep: #0f5b34;
  --ink: #0f1d17;
  --muted: #6b7770;
  --bg: #ffffff;
  --bg-alt: #f6f8f6;
  --line: #e7ebe8;
  --shadow: 0 10px 30px rgba(15, 29, 23, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h4 { font-size: 17px; margin-bottom: 8px; }
p { margin: 0 0 16px; color: #2c3a32; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 13px; text-align: center; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

/* NAV */
.nav { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--green); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--green); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31, 157, 91, 0.3); }
.btn-outline { background: white; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-white { background: white; color: var(--green-deep); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.btn-block { width: 100%; }

/* HERO */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-copy p { font-size: 17px; color: #4a564f; max-width: 480px; }
.hero-visual { position: relative; min-height: 420px; }

/* CARDS */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.card-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-name { font-weight: 600; font-size: 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #ffd29a, #f49a72); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar-lg { width: 44px; height: 44px; }
.g-badge { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: white; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #4285F4; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 16px; margin-bottom: 8px; }
.stars.small { font-size: 13px; letter-spacing: 1px; margin: 0; }
.stars-input { color: #f5a623; font-size: 26px; letter-spacing: 4px; }
.stars-input .dim { color: #d9dcd9; }
.rating-big { font-size: 56px; font-weight: 800; line-height: 1; margin: 8px 0; }
.bars { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.bars span { display: block; height: 6px; background: #eef0ee; border-radius: 4px; overflow: hidden; }
.bars i { display: block; height: 100%; width: var(--w); background: #f5a623; }

/* HERO floating cards */
.card-review { position: absolute; top: 30px; left: 0; width: 280px; z-index: 2; }
.card-rating { position: absolute; bottom: 20px; right: 10px; width: 220px; z-index: 3; }
.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.85; }
.blob-green { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #2bb673, #1f9d5b); right: 30px; top: 80px; z-index: 1; }
.blob-blue { width: 140px; height: 140px; background: radial-gradient(circle at 30% 30%, #6fb8ff, #3a8ce0); right: 220px; top: 180px; z-index: 1; }

/* SECTIONS */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-center { text-align: center; }
.section-center h2, .section-center > .container > p { max-width: 720px; margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.visual-stack { position: relative; min-height: 340px; }
.visual-stack.right { min-height: 380px; }
.visual-stack .card-review { position: absolute; top: 20px; left: 30px; width: 280px; }
.visual-stack .card-rating { position: absolute; bottom: 40px; right: 0; }
.mini-cards { position: absolute; bottom: 0; left: 60px; display: flex; gap: 16px; }
.mini { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; padding: 0; }
.donut { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#2bb673 0 60%, #4285F4 60% 85%, #f5a623 85% 100%); }
.wave { width: 70px; }

.fb-bubble { position: absolute; top: 0; left: 40px; width: 50px; height: 50px; border-radius: 50%; background: #1877F2; color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; box-shadow: var(--shadow); }
.compact { position: absolute; top: 60px; left: 0; width: 280px; }
.reviews-tab { position: absolute; bottom: 0; left: 30px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); box-shadow: var(--shadow); }

/* FORM CARD */
.form-card { width: 320px; margin-left: auto; }
.form-title { font-weight: 700; text-align: center; margin-bottom: 16px; }
.form-card label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.input { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--bg-alt); border-radius: 8px; font-size: 14px; }
.input .check { color: var(--green); font-weight: 700; }
.form-card .btn { margin-top: 16px; }
.small-rating { width: 220px; margin: 20px auto 0; text-align: center; position: static !important; }

/* LOGO GRID */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 32px; }
.logo-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; transition: transform 0.2s, box-shadow 0.2s; }
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* DASHBOARD */
.dashboard { background: white; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 50px; padding: 24px; text-align: left; }
.dash-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.dash-tabs span { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: 6px; cursor: pointer; }
.dash-tabs span.active { background: var(--bg-alt); color: var(--green); font-weight: 600; }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; padding: 16px; background: var(--bg-alt); border-radius: 10px; }
.big-num { font-size: 32px; font-weight: 800; margin: 4px 0; }
.trend { color: var(--green); font-size: 12px; font-weight: 600; }
.dash-table { display: flex; flex-direction: column; gap: 2px; }
.dash-tr { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 12px 8px; align-items: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.dash-tr.head { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.green { background: #e6f5ec; color: var(--green-dark); }
.pill.amber { background: #fff3dc; color: #b07a00; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 40px; }
.feature h4::before { content: ""; display: block; width: 36px; height: 3px; background: var(--green); margin-bottom: 12px; border-radius: 2px; }

/* CTA */
.cta { background: var(--green-deep); color: white; padding: 90px 0; text-align: center; }
.cta h2 { color: white; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* FOOTER */
.footer { background: var(--green-deep); color: rgba(255,255,255,0.9); padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.footer .logo { color: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: white; }
.footer .muted { color: rgba(255,255,255,0.6); }

/* RESPONSIVE */
@media (max-width: 880px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 50px; }
  .two-col.reverse { direction: ltr; }
  .hero-visual { min-height: 380px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .dash-row { grid-template-columns: 1fr; }
  .dash-tr { grid-template-columns: 1fr 1fr; gap: 4px; }
  .form-card { margin: 0 auto; }
}
