/* teppolun.co — Social Content Studio */

:root {
  --accent: #5bc8c1;
  --accent-dark: #3da8a1;
  --accent-light: #7dd9d3;
  --bg: #0f1419;
  --bg-card: #1a2229;
  --bg-elevated: #232d36;
  --text: #e8edf2;
  --text-muted: #8b9aab;
  --border: #2d3a45;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

ul {
  list-style: none;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  color: var(--bg) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ── Mobile menu ── */

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  background: var(--bg-elevated);
}

.mobile-menu .legal-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu .legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: none;
  padding: 10px 16px;
}

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(91, 200, 193, 0.15), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(91, 200, 193, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 200, 193, 0.12);
  border: 1px solid rgba(91, 200, 193, 0.3);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(91, 200, 193, 0.35);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--bg);
  box-shadow: 0 6px 28px rgba(91, 200, 193, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  height: 380px;
}

.hero-shape {
  position: absolute;
  border-radius: var(--radius-lg);
}

.hero-shape-1 {
  width: 280px;
  height: 320px;
  top: 20px;
  right: 40px;
  background: linear-gradient(160deg, var(--accent-dark), var(--accent));
  opacity: 0.85;
  transform: rotate(6deg);
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  bottom: 30px;
  left: 20px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(91, 200, 193, 0.15) 8px,
    rgba(91, 200, 193, 0.15) 16px
  );
  border: 2px solid var(--accent);
  transform: rotate(-8deg);
}

.hero-shape-3 {
  width: 120px;
  height: 120px;
  top: 0;
  left: 60px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: radial-gradient(circle, rgba(91, 200, 193, 0.2), transparent);
}

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--accent);
}

.hero-play svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
  margin-left: 4px;
}

/* ── Sections ── */

section {
  padding: 64px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
}

.section-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(91, 200, 193, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(91, 200, 193, 0.08), var(--bg-card));
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}

.price-amount small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  margin: 20px 0;
}

.price-card li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Blog grid ── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.blog-card-link:hover {
  color: inherit;
}

.blog-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.blog-thumb-inner {
  width: 100%;
  height: 100%;
}

.thumb-1 { background: linear-gradient(135deg, #1a3a38, var(--accent-dark)); }
.thumb-2 { background: linear-gradient(160deg, #2a1f3d, #5bc8c1); }
.thumb-3 { background: repeating-conic-gradient(from 0deg, var(--accent-dark) 0deg 20deg, #1a2229 20deg 40deg); }
.thumb-4 { background: linear-gradient(45deg, var(--bg-elevated) 25%, var(--accent) 25%, var(--accent) 50%, var(--bg-elevated) 50%, var(--bg-elevated) 75%, var(--accent) 75%); background-size: 20px 20px; }
.thumb-5 { background: radial-gradient(circle at 30% 70%, var(--accent), #0f1419); }
.thumb-6 { background: linear-gradient(to right, #1a2229, var(--accent-dark), #1a2229); }
.thumb-7 { background: conic-gradient(from 180deg, var(--accent), var(--bg-card), var(--accent-dark), var(--bg-card)); }
.thumb-8 { background: linear-gradient(120deg, #232d36 40%, var(--accent) 40%, var(--accent) 60%, #232d36 60%); }

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.read-more {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Post page ── */

.post-hero {
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--border);
}

.post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.post-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-cover {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-cover-visual {
  height: 280px;
  border-radius: var(--radius-lg);
  margin-top: -20px;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.post-content p {
  margin-bottom: 1.4em;
  color: var(--text);
}

.post-content h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.8em;
  color: var(--accent);
}

.post-content ul {
  margin: 0 0 1.4em 1.2em;
  list-style: disc;
}

.post-content li {
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

.post-nav {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-nav a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Contact page ── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(91, 200, 193, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-item p, .contact-item a {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.contact-form-wrap h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-success {
  display: none;
  background: rgba(91, 200, 193, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
}

.form-success.show {
  display: block;
}

/* ── Legal pages ── */

.legal-page {
  padding: 48px 24px 80px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2em 0 0.8em;
  color: var(--accent);
}

.legal-page p {
  margin-bottom: 1.2em;
  color: var(--text-muted);
}

.legal-page ul {
  margin: 0 0 1.2em 1.2em;
  list-style: disc;
}

.legal-page li {
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

.legal-doc-id {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Footer ── */

.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ── CTA banner ── */

.cta-banner {
  background: linear-gradient(135deg, rgba(91, 200, 193, 0.15), rgba(91, 200, 193, 0.05));
  border: 1px solid rgba(91, 200, 193, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin: 0 24px 64px;
  max-width: calc(var(--max-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    height: 260px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 24px 64px;
  }

  .cta-banner {
    padding: 32px 24px;
  }
}
