@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-color: #FDFCF8;
  --text-main: #1C1C1A;
  --text-muted: #5F5F5C;
  --button-bg: #2C2C2A;
  --button-hover: #1A1A18;
  --border-light: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  color: var(--text-main);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: grayscale(100%) contrast(120%);
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--button-bg);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: #ccc;
  background: rgba(0,0,0,0.02);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 160px 5% 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 60px;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 5rem;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-visuals {
  width: 100%;
  max-width: 1000px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.phone-mockup {
  width: 320px;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 8px solid #fff;
}

.phone-mockup img {
  width: 100%;
  display: block;
}

.secondary-mockup {
  width: 320px;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 8px solid #fff;
  margin-top: 80px;
}

.secondary-mockup img {
  width: 100%;
  display: block;
}

/* Content Pages */
.page-container {
  padding: 160px 5% 100px;
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
}

.prose {
  color: var(--text-main);
  font-size: 1.1rem;
}

.prose h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin: 40px 0 16px;
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.prose ul {
  margin-left: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.prose li {
  margin-bottom: 12px;
}

/* Footer */
footer {
  padding: 40px 5%;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .hero-visuals {
    flex-direction: column;
    align-items: center;
  }
  .secondary-mockup {
    margin-top: 0;
  }
  nav { display: none; }
}

/* Pricing Section */
.pricing {
  padding: 100px 5%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.pricing-header {
  text-align: center;
  max-width: 600px;
}

.pricing-header h2 {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1200px;
}

.pricing-card {
  background: var(--bg-color);
  padding: 48px 32px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.pricing-card.featured {
  background: var(--button-bg);
  color: #fff;
  border: none;
}

.pricing-card.featured .plan-price, 
.pricing-card.featured .plan-name {
  color: #fff;
}

.pricing-card.featured .plan-features li {
  color: rgba(255,255,255,0.7);
}

.pricing-card.featured .btn-outline {
  background: #fff;
  color: var(--button-bg);
  border: none;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.plan-price {
  font-size: 3rem;
  font-family: 'Instrument Serif', serif;
  margin-bottom: 24px;
}

.plan-price span {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
}

.pricing-card.featured .plan-price span {
  color: rgba(255,255,255,0.6);
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.credits-section {
  width: 100%;
  max-width: 1200px;
  background: #f9f9f7;
  padding: 40px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed var(--border-light);
}

.credits-info h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.credits-info p {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .pricing-header h2 { font-size: 2.5rem; }
  .credits-section {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

/* Quanta Code Specific Styles */
.dark-section {
  background: #111110;
  color: #fff;
  padding: 120px 5%;
}

.dark-section h2, .dark-section h3 {
  color: #fff;
}

.dark-section p {
  color: rgba(255,255,255,0.7);
}

.code-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.code-teaser-content {
  flex: 1;
  max-width: 500px;
}

.code-teaser-visual {
  flex: 1;
  position: relative;
}

.code-teaser-visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.token-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
}

.token-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.token-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.token-rate {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  margin: 16px 0;
}

.token-rate span {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item i {
  color: #fff;
}

.feature-item h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .code-teaser {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}
