:root {
  --bg: #f5f5fb;
  --bg-soft: #ffffff;
  --accent: #7c3aed;
  --accent-soft: #ede9fe;
  --accent-strong: #5b21b6;
  --ink: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(900px 600px at 10% 0%, #eef2ff 0%, #f9fafb 40%, #f3f4ff 100%);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Layout */

.page-wrapper {
  min-height: 100vh;
}

/* Container */

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(249, 250, 251, 0.95), rgba(249, 250, 251, 0.9));
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 0%, #a855f7, #7c3aed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding-block: 6px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width var(--transition-fast);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

/* Nav toggle (mobile) */

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

/* Hero */

.hero {
  padding: 40px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.1);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.37);
}

.hero h1 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.highlight {
  background: linear-gradient(120deg, #7c3aed, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.06);
}

.btn-small {
  font-size: 12px;
  padding: 5px 12px;
}

.btn-small.btn-ghost {
  border-radius: 999px;
}

/* Hero Right */

.hero-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 10% 0%, #eef2ff 0, #ffffff 40%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.hero-card-header {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  background: linear-gradient(to right, #111827, #020617);
}

.hero-card-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-green {
  background: #22c55e;
}

.dot-yellow {
  background: #eab308;
}

.dot-red {
  background: #ef4444;
}

.hero-card-body {
  padding: 16px 18px 20px;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}

.hero-card-text {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-mini-card {
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.16);
}

.hero-mini-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.hero-mini-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(900px 600px at 90% 0%, #eef2ff 0%, #f9fafb 30%, #eef2ff 100%);
}

.section-header {
  text-align: left;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 16px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Portfolio */

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: flex-start;
}

.portfolio-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-tab {
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: linear-gradient(to right, #f9fafb, #ffffff);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.portfolio-tab.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.02));
  color: var(--ink);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.18);
  transform: translateY(-1px);
}

.portfolio-panels {
  position: relative;
}

.portfolio-panel {
  display: none;
}

.portfolio-panel.active {
  display: block;
}

.demo-card {
  padding: 18px 18px 14px;
}

.demo-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.demo-header p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.demo-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* WhatsApp chat demo */

.whatsapp-chat {
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(to bottom, #f9fafb, #eef2ff);
  border: 1px solid rgba(209, 213, 219, 0.8);
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-bubble {
  max-width: 80%;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 16px;
  line-height: 1.35;
}

.chat-bubble.incoming {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.chat-bubble.outgoing {
  background: #22c55e;
  color: #052e16;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-form {
  display: flex;
  margin-top: 10px;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
}

.chat-form input:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4);
}

/* Sheet demo */

.sheet-wrapper {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: #f9fafb;
  overflow: hidden;
}

.sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(to right, #e5e7eb, #f9fafb);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.sheet-title {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.sheet-table-wrapper {
  max-height: 220px;
  overflow: auto;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sheet-table thead {
  background: #e5e7eb;
}

.sheet-table th,
.sheet-table td {
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 5px 8px;
  text-align: left;
}

.sheet-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.sheet-table tbody tr:nth-child(even) {
  background: #f3f4f6;
}

/* Reminder demo */

.reminder-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group.inline {
  flex-direction: row;
  gap: 10px;
}

.field-group label {
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}

.field-group input,
.field-group select,
.field-group textarea {
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.field-group textarea {
  min-height: 80px;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25);
}

.reminder-output {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  background: rgba(248, 250, 252, 0.9);
  padding: 10px 12px;
  font-size: 13px;
}

.reminder-output strong {
  color: #111827;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: flex-start;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-card p {
  margin: 0 0 6px;
  font-size: 14px;
}

.contact-detail {
  font-weight: 500;
}

.contact-detail a {
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.small {
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.contact-form-card h3 {
  margin: 0 0 4px;
}

.contact-form-card p {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-success {
  margin-top: 8px;
  font-size: 13px;
  color: #16a34a;
}

/* Footer */

.site-footer {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #f9fafb;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 3px 0;
}

/* Ask widget */

.ask-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.55);
  text-align: left;
  line-height: 1.2;
}

.ask-widget:hover {
  transform: translateY(-1px);
}

.ask-panel {
  position: fixed;
  right: 18px;
  bottom: 80px;
  width: 280px;
  max-width: calc(100% - 36px);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 12px 12px 10px;
  z-index: 60;
  transform-origin: bottom right;
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.ask-panel.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.ask-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ask-panel-header h3 {
  margin: 0;
  font-size: 14px;
}

.ask-panel-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  color: var(--muted);
}

.ask-panel-text {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.ask-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  min-height: 70px;
  font-size: 12px;
  padding: 7px 8px;
  resize: vertical;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.ask-form textarea:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25);
}

.ask-form .btn {
  margin-top: 6px;
  width: 100%;
}

.ask-success {
  margin-top: 4px;
  font-size: 11px;
  color: #16a34a;
}

/* Utilities */

[hidden] {
  display: none !important;
}

/* Responsive */

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-demo {
    order: -1;
  }

  .portfolio-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 60px;
    padding: 8px 16px 12px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(249, 250, 251, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transform-origin: top;
    transform: scaleY(0);
    max-height: 0;
    overflow: hidden;
    transition: transform 0.18s ease-out, max-height 0.18s ease-out;
  }

  .nav.open {
    transform: scaleY(1);
    max-height: 180px;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 26px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ask-panel {
    right: 12px;
    bottom: 76px;
  }

  .ask-widget {
    right: 12px;
    bottom: 12px;
  }
}
