/* ═══════════════════════════════════════════════
   VUNA Wine – Styles
   ═══════════════════════════════════════════════ */

:root {
  --primary: #6c3ce0;
  --primary-light: #8b5cf6;
  --primary-dark: #5b2cc9;
  --accent: #f97316;
  --bg: #fafafa;
  --bg-alt: #f1f0f5;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

section[id] { scroll-margin-top: 72px; }

/* ── Navbar ───────────────────────────────────── */
.navbar {
  padding: 0.8rem 0;
  background: rgba(15, 10, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.navbar-brand {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a78bfa, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #ffffff;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0a2a 0%, #1a1040 40%, #2d1b69 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(124,58,237,0.25), transparent),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(236,72,153,0.15), transparent),
    radial-gradient(ellipse 400px 300px at 60% 80%, rgba(99,102,241,0.12), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(108,60,224,0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,60,224,0.45);
  color: #fff;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* ── Sections ─────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

/* ── Feature Cards ────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── About ────────────────────────────────────── */
.about-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image-placeholder {
  background: linear-gradient(135deg, #f3e8ff, #fce7f3);
  border-radius: var(--radius);
  padding: 80px 40px;
  text-align: center;
  color: var(--primary);
}

.about-image-placeholder span {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
}

.about-image-placeholder p {
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial {
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 8px;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}

.testimonial cite {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: normal;
}

/* ── Calculator ───────────────────────────────── */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.calculator-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.calculator-display {
  background: #1a1a2e;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: right;
}

#result {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  text-align: right;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

#result::placeholder {
  color: rgba(255,255,255,0.2);
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calc-btn {
  height: 56px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.calc-btn:active {
  transform: scale(0.95);
}

.calc-btn.num {
  background: #f1f5f9;
  color: var(--text);
}

.calc-btn.num:hover {
  background: #e2e8f0;
}

.calc-btn.fn {
  background: #e0e7ff;
  color: var(--primary);
}

.calc-btn.fn:hover {
  background: #c7d2fe;
}

.calc-btn.op {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(108,60,224,0.25);
}

.calc-btn.op:hover {
  box-shadow: 0 5px 18px rgba(108,60,224,0.35);
  transform: translateY(-1px);
}

.calc-btn.action {
  background: #fef2f2;
  color: #ef4444;
}

.calc-btn.action:hover {
  background: #fee2e2;
}

.calc-btn.equals {
  grid-column: span 4;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #ffffff;
  font-size: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}

.calc-btn.equals:hover {
  box-shadow: 0 6px 24px rgba(249,115,22,0.4);
  transform: translateY(-1px);
}

.calculator-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.calculator-info > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.calc-features {
  list-style: none;
  padding: 0;
}

.calc-features li {
  padding: 10px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.calc-features li:last-child {
  border-bottom: none;
}

/* ── Contact Form ─────────────────────────────── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,60,224,0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(108,60,224,0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,60,224,0.35);
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: #0f0a2a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 30px 0 20px;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Theme Toggle ─────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ── Dark Mode ────────────────────────────────── */
body.dark-mode {
  --bg: #0f0a2a;
  --bg-alt: #161035;
  --surface: #1e1648;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #2d2558;
}

body.dark-mode .navbar {
  background: rgba(15, 10, 42, 0.95);
}

body.dark-mode .feature-card,
body.dark-mode .contact-form {
  background: var(--surface);
  border-color: var(--border);
}

body.dark-mode .calc-btn.num {
  background: #2d2558;
  color: #e2e8f0;
}

body.dark-mode .calc-btn.num:hover {
  background: #3d3568;
}

body.dark-mode .calc-btn.fn {
  background: #2d2558;
  color: #a78bfa;
}

body.dark-mode .form-input {
  background: #1a1240;
  border-color: #2d2558;
  color: #f1f5f9;
}

body.dark-mode .form-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}

body.dark-mode .theme-toggle {
  background: var(--surface);
  border-color: var(--border);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content {
    padding: 100px 0 60px;
  }

  .contact-form {
    padding: 24px;
  }
}
