/* ========================================
   SATO LAB — Main Stylesheet
   Light, clean, modern Android dev studio
======================================== */

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

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface2: #f2f0eb;
  --border: #e5e2da;
  --text: #1a1916;
  --text-muted: #7a7670;
  --accent: #2d6a4f;
  --accent-light: #e8f5ee;
  --accent2: #f0a500;
  --accent2-light: #fff8e6;
  --blue: #1a6fb0;
  --blue-light: #e8f2fb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 2px solid var(--accent); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary:hover { background: #245940; color: #fff; opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,106,79,0.3); }
.btn-primary.large { padding: 16px 32px; font-size: 16px; }
.btn-primary.full-width { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 12px 24px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: var(--text); background: var(--surface); opacity: 1; }
.btn-ghost.large { padding: 16px 32px; font-size: 16px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--accent);
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 2px solid var(--accent); cursor: pointer; width: 100%;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--accent-light); opacity: 1; }

/* ── TYPOGRAPHY ── */
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-light);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--text); color: #fff; padding: 16px 24px;
  transform: translateY(0); transition: transform 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(120%); }
.cookie-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; font-size: 14px; min-width: 200px; }
.cookie-inner a { color: var(--accent2); }
.cookie-btns { display: flex; gap: 10px; }
.btn-accept { background: var(--accent); color: #fff; border: none; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 9px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,247,244,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; height: 70px; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; background: var(--accent); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 400; flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.logo-text em { font-style: italic; color: var(--accent); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color var(--transition); text-decoration: none; }
.nav a:hover { color: var(--accent); opacity: 1; }
.nav-cta { margin-left: 8px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4;
}
.blob1 { width: 500px; height: 500px; background: radial-gradient(circle, #a8d8b9 0%, transparent 70%); top: -100px; right: -100px; animation: drift 8s ease-in-out infinite alternate; }
.blob2 { width: 350px; height: 350px; background: radial-gradient(circle, #ffd580 0%, transparent 70%); bottom: 50px; left: -80px; animation: drift 10s ease-in-out infinite alternate-reverse; }
.blob3 { width: 250px; height: 250px; background: radial-gradient(circle, #b3d4f0 0%, transparent 70%); top: 50%; right: 30%; animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(20px, 30px) scale(1.05); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px; opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px);
  font-weight: 400; line-height: 1.1; margin-bottom: 20px; color: var(--text);
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat span { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.hero-phone {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  z-index: 1; animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 16px)); } }

.phone-mockup {
  width: 200px; height: 400px; background: var(--text); border-radius: 36px;
  padding: 16px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
}
.phone-mockup::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px; background: #333; border-radius: 3px;
}
.phone-screen { background: var(--bg); border-radius: 24px; height: 100%; padding: 20px 14px; overflow: hidden; }
.app-ui { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.app-bar { height: 10px; background: var(--accent); border-radius: 5px; }
.app-card { height: 60px; background: linear-gradient(135deg, var(--accent-light), var(--blue-light)); border-radius: 10px; }
.app-row { display: flex; align-items: center; gap: 8px; }
.app-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.app-dot.blue { background: var(--blue); }
.app-dot.green { background: var(--accent); }
.app-dot.orange { background: var(--accent2); }
.app-line { height: 8px; background: var(--border); border-radius: 4px; flex: 1; }
.app-line.short { flex: 0.6; }
.app-btn-mock { height: 32px; background: var(--accent); border-radius: 16px; margin-top: 8px; }

/* ── SERVICES ── */
.services { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card.featured {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.service-card.featured p { color: rgba(255,255,255,0.8); }
.service-icon { font-size: 28px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.featured-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent2); color: var(--text); font-size: 11px;
  font-weight: 700; padding: 3px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── WHY US ── */
.why-us { background: var(--bg); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-lead { font-size: 17px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.advantages { display: flex; flex-direction: column; gap: 24px; }
.advantage { display: flex; gap: 16px; align-items: flex-start; }
.adv-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.advantage strong { display: block; font-weight: 600; margin-bottom: 4px; }
.advantage p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.tech-stack {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px;
}
.tech-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.tech-items { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-items span {
  background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 500;
  padding: 5px 12px; border-radius: 50px;
}
.process-steps { display: flex; flex-direction: column; gap: 2px; }
.step {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; background: var(--surface); border: 1px solid var(--border);
  font-size: 15px; font-weight: 500;
}
.step:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.step:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.step span { font-family: var(--font-display); font-size: 22px; color: var(--accent); font-style: italic; min-width: 36px; }

/* ── PRICING ── */
.pricing { background: var(--surface); }
.pricing-note { color: var(--text-muted); font-size: 15px; max-width: 560px; margin-top: -12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.price-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; transition: box-shadow var(--transition), transform var(--transition);
}
.price-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.price-card.popular { background: var(--text); color: #fff; border-color: var(--text); }
.price-card.popular .plan-desc,
.price-card.popular .plan-features li,
.price-card.popular .plan-features li.muted { color: rgba(255,255,255,0.7); }

.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent2); color: var(--text); font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.price-card.popular .plan-name { color: rgba(255,255,255,0.6); }
.plan-price { font-family: var(--font-display); font-size: 40px; font-weight: 400; margin-bottom: 8px; line-height: 1; }
.plan-price span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--text-muted); vertical-align: middle; margin-left: 4px; }
.price-card.popular .plan-price span { color: rgba(255,255,255,0.6); }
.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; }
.plan-features li.muted { opacity: 0.4; }

.pricing-footer { text-align: center; margin-top: 32px; color: var(--text-muted); font-size: 15px; }

/* ── REVIEWS ── */
.reviews { background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow var(--transition), transform var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.review-card.highlight { background: var(--accent-light); border-color: var(--accent); }
.stars { color: var(--accent2); font-size: 16px; margin-bottom: 14px; }
.review-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reviewer strong { display: block; font-size: 14px; font-weight: 600; }
.reviewer span { font-size: 12px; color: var(--text-muted); }

/* ── CONTACT ── */
.contact { background: var(--surface); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info p { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 14px; color: var(--text-muted); }

.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px; color: var(--text);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.form-note a { color: var(--accent); }

/* ── FOOTER ── */
.footer { background: var(--text); color: #fff; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { margin-bottom: 16px; display: block; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-brand strong { color: rgba(255,255,255,0.8); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: #fff; opacity: 1; }
.footer-bottom { padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); text-align: center; }

/* ── LEGAL PAGES ── */
.legal-page { padding: 120px 0 80px; min-height: 80vh; }
.legal-page h1 { font-family: var(--font-display); font-size: 40px; margin-bottom: 12px; }
.legal-page .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 48px; }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.legal-content p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-phone { display: none; }
  .services-grid,
  .pricing-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav, .nav-cta { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; inset: 70px 0 0; background: var(--bg); padding: 32px 24px; gap: 20px; z-index: 99; }
  .nav.open a { font-size: 20px; }
  .burger { display: flex; }
  .services-grid,
  .pricing-grid,
  .reviews-grid,
  .footer-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
