:root {
  --primary: #4a148c;
  --accent: #ce93d8;
  --bg: #f3e5f5;
  --text: #1a002a;
  --light: #ede7f6;
  --border: #d1c4e9;
  --success: #388e3c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* Demo Bar */
.demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.demo-bar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.demo-bar a:hover {
  text-decoration: underline;
}

body {
  padding-top: 40px;
}

/* Header & Nav */
header {
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: relative;
  margin-top: 0;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-label {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--primary);
  user-select: none;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 15px;
}

nav a:hover {
  color: var(--primary);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-label {
    display: block;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  nav a {
    padding: 16px;
    border-bottom: 1px solid var(--light);
    font-size: 16px;
  }

  .nav-toggle:checked ~ nav {
    max-height: 300px;
  }

  header .container {
    padding: 12px 16px;
  }

  .logo {
    font-size: 18px;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 48px 16px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 15px;
}

.btn-primary {
  background: white;
  color: var(--primary);
  margin-right: 12px;
  margin-bottom: 8px;
}

.btn-primary:hover {
  background: var(--light);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
  margin-bottom: 8px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    display: block;
    margin: 8px 0;
  }
}

/* Section */
section {
  padding: 40px 16px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--primary);
  text-align: center;
}

section h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 24px;
  text-align: center;
}

.card-header h3 {
  color: white;
  margin-bottom: 8px;
}

.card-body {
  padding: 20px;
}

.card-body p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  margin: 16px 0;
}

.feature-list li {
  padding: 8px 0;
  font-size: 14px;
  position: relative;
  padding-left: 24px;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Detail Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.detail-visual {
  background: linear-gradient(135deg, var(--light), var(--bg));
  padding: 40px;
  border-radius: 8px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary);
  font-size: 14px;
}

.detail-text h2 {
  text-align: left;
  margin-bottom: 16px;
}

.detail-text p {
  margin-bottom: 12px;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.spec-item {
  background: var(--light);
  padding: 16px;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.spec-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
}

.spec-item span {
  font-size: 14px;
  color: #666;
}

/* Form */
form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74, 20, 140, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Calculator */
.calculator {
  background: white;
  padding: 28px;
  border-radius: 8px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calculator-input {
  margin-bottom: 20px;
}

.calculator-input label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 600;
}

.calculator-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.result-box {
  background: linear-gradient(135deg, var(--light), var(--bg));
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border-left: 4px solid var(--accent);
}

.result-box h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.result-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 32px 16px;
  text-align: center;
}

footer p {
  margin-bottom: 8px;
  font-size: 14px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

.price-highlight {
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}
