/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #333; line-height: 1.6; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== VARIABLES ========== */
:root {
  --primary: #06B0D0;
  --primary-dark: #0599b5;
  --primary-glow: rgba(6,176,208,.15);
  --dark: #0A1215;
  --darker: #060d0f;
  --charcoal: #12252b;
  --surface: #1a2b32;
  --surface-light: #1e3038;
  --light-bg: #f0f8fa;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --transition: .3s ease;
  --max-width: 1200px;
}

/* ========== UTILITIES ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,176,208,.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }
.section-label { text-transform: uppercase; font-size: .85rem; font-weight: 700; letter-spacing: 2px; color: var(--primary); margin-bottom: 8px; }
.section-title { font-size: 2.2rem; font-weight: 900; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 1.15rem; color: var(--text-light); max-width: 640px; margin: 0 auto 48px; }
.text-center { text-align: center; }

/* ========== HEADER / NAV ========== */
.header { position: sticky; top: 0; z-index: 1000; background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 900; }
.logo .craft { color: var(--primary); }
.logo .accounting { color: var(--white); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-weight: 500; font-size: .9rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links .btn { padding: 8px 20px; font-size: .85rem; }
.nav-portal { color: var(--primary) !important; font-weight: 600 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* ========== HERO — Claude-style AI Interface ========== */
.hero-ai {
  background: var(--dark);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-ai::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6,176,208,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-ai-inner {
  width: 100%;
  max-width: 780px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Welcome state */
.ai-welcome {
  text-align: center;
  margin-bottom: 32px;
}
.ai-icon { margin-bottom: 24px; }
.ai-heading {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.ai-subtext {
  font-size: 1.1rem;
  color: rgba(255,255,255,.4);
  font-weight: 400;
}

/* Input bar */
.ai-input-area {
  width: 100%;
  margin-bottom: 24px;
}
.ai-input-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 6px 6px 6px 24px;
  transition: border-color .25s, box-shadow .25s;
}
.ai-input-box:focus-within {
  border-color: rgba(6,176,208,.4);
  box-shadow: 0 0 0 3px rgba(6,176,208,.1);
}
.ai-input-box input {
  flex: 1;
  padding: 14px 0;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #fff;
  outline: none;
}
.ai-input-box input::placeholder { color: rgba(255,255,255,.3); }
.ai-input-box button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.ai-input-box button:hover { background: var(--primary-dark); transform: scale(1.05); }

/* Suggestion tiles */
.ai-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 32px;
}
.ai-suggestions button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.ai-suggestions button:hover {
  background: var(--surface-light);
  border-color: rgba(6,176,208,.3);
  transform: translateY(-1px);
}
.sg-icon { font-size: 1.2rem; }
.sg-text { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); }
.sg-sub { font-size: .78rem; color: rgba(255,255,255,.35); }

/* Integrations row */
.ai-integrations {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 40px;
}
.ai-int-label {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ai-int-logos { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.int-chip {
  padding: 5px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* Conversation area */
.ai-conversation {
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  padding-right: 8px;
}
.ai-conversation.active { display: flex; }
.ai-conversation::-webkit-scrollbar { width: 4px; }
.ai-conversation::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* Messages */
.ai-msg {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  animation: msgFade .4s ease;
}
@keyframes msgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.ai-msg-user {
  justify-content: flex-end;
}
.ai-msg-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.ai-msg-content {
  font-size: .93rem;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  max-width: 85%;
}
.ai-msg-content p { margin-bottom: 12px; }
.ai-msg-content p:last-child { margin-bottom: 0; }
.ai-msg-content strong { color: #fff; font-weight: 600; }
.ai-msg-content a { color: var(--primary); font-weight: 600; }
.ai-msg-content a:hover { text-decoration: underline; }

.ai-msg-user .ai-msg-content {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px;
  border-radius: 22px;
  color: rgba(255,255,255,.9);
}

/* Typing dots */
.ai-typing-dots {
  display: flex; gap: 5px; align-items: center; padding: 10px 0;
}
.ai-typing-dots span {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  animation: dotBounce 1.4s infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: .2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,.7); }
.section-light { background: var(--light-bg); }

/* ========== CARDS GRID ========== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #eee; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--primary-glow); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; }
.card h3 { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: .95rem; line-height: 1.7; }
.card-link { display: inline-block; margin-top: 16px; color: var(--primary); font-weight: 700; font-size: .9rem; }
.card-link:hover { text-decoration: underline; }

/* ========== STATS ========== */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; padding: 60px 0; }
.stat-item .stat-number { font-size: 2.8rem; font-weight: 900; color: var(--primary); }
.stat-item .stat-label { font-size: .95rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.feature-item { text-align: center; }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-item h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--dark); }
.feature-item p { color: var(--text-light); font-size: .95rem; }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.testimonial { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.testimonial .author { font-weight: 700; color: var(--dark); }
.testimonial .role { font-size: .85rem; color: var(--text-light); }

/* ========== CTA BANNER ========== */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, #2dcce6 100%); color: var(--white); padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; opacity: .9; margin-bottom: 28px; }

/* ========== PAGE HERO (inner pages) ========== */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%); color: var(--white); padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 12px; }
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; }

/* ========== CONTENT SECTIONS ========== */
.content-block { padding: 60px 0; }
.content-block h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.content-block p, .content-block li { color: var(--text-light); line-height: 1.8; }
.content-block ul { padding-left: 0; }
.content-block ul li { padding: 8px 0 8px 28px; position: relative; }
.content-block ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ========== COMPARISON TABLE ========== */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; }
.comparison-table th, .comparison-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #eee; }
.comparison-table thead th { background: var(--dark); color: var(--white); font-weight: 700; }
.comparison-table thead th:first-child { border-radius: 8px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 8px 0 0; }
.comparison-table tbody tr:hover { background: var(--light-bg); }

/* ========== PRICING ========== */
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.option-card { border: 2px solid #eee; border-radius: var(--radius); padding: 32px; text-align: center; transition: var(--transition); }
.option-card:hover { border-color: var(--primary); }
.option-card.featured { border-color: var(--primary); position: relative; }
.option-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 4px 16px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.option-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.option-card .price { font-size: .95rem; color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.option-card ul { text-align: left; margin-bottom: 24px; }
.option-card ul li { padding: 6px 0 6px 24px; font-size: .9rem; position: relative; color: var(--text-light); }
.option-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ========== TEAM ========== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.team-member { text-align: center; }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #2dcce6); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--white); }
.team-member h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.team-member .title { color: var(--text-light); font-size: .9rem; }

/* ========== CONTACT FORM ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; color: var(--dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 1rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-card { background: var(--dark); color: var(--white); border-radius: var(--radius); padding: 40px; }
.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-info-item .icon { font-size: 1.3rem; margin-top: 2px; }
.contact-info-item .label { font-size: .85rem; color: rgba(255,255,255,.6); }
.contact-info-item .value { font-weight: 600; }

/* ========== FOOTER ========== */
.footer { background: var(--darker); color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .9rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--primary); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 24px; gap: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.3); border-top: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .ai-heading { font-size: 1.8rem; }
  .ai-suggestions { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
