/* Textime Ltd. — standalone marketing site */

:root {
  --ink: #0c1222;
  --ink-soft: #1a2332;
  --muted: #5c6b7a;
  --line: #e4e9ef;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --wa: #25d366;
  --wa-deep: #128c7e;
  --accent: #0d9488;
  --glow: rgba(37, 211, 102, 0.25);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 24px 48px rgba(12, 18, 34, 0.12);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    backdrop-filter: blur(14px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo span {
  color: var(--wa-deep);
}

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

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}

.nav .btn-nav {
  background: linear-gradient(135deg, var(--wa) 0%, #34d399 100%);
  color: #052e16 !important;
  margin-left: 8px;
}

.nav .btn-nav:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px var(--glow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--surface-2);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    padding: 14px 16px;
  }

  .nav .btn-nav {
    margin-left: 0;
    text-align: center;
    margin-top: 12px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 45%, #0f172a 100%);
  color: #e2e8f0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(37, 211, 102, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(13, 148, 136, 0.25), transparent);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #86efac;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  margin-bottom: 20px;
}

.hero__badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #f8fafc;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #4ade80, #25d366, #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 34rem;
  margin: 0 0 28px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--wa) 0%, #4ade80 100%);
  color: #052e16;
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.35);
}

.btn--primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.hero__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
}

/* Hero card */
.hero-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

@supports (backdrop-filter: blur(10px)) {
  .hero-card {
    backdrop-filter: blur(12px);
  }
}

.hero-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card__dots {
  display: flex;
  gap: 6px;
}

.hero-card__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.hero-card__dots i:first-child { background: #f87171; }
.hero-card__dots i:nth-child(2) { background: #fbbf24; }
.hero-card__dots i:last-child { background: var(--wa); }

.hero-card__title {
  margin-left: auto;
}

.hero-card__bar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.hero-card__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.hero-card__bar > span {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wa-deep), var(--wa));
}

.hero-card__note {
  font-size: 0.8rem;
  color: #64748b;
}

.hero-card__chat {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 95%;
}

.chat-bubble--in {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble--out {
  align-self: flex-end;
  background: linear-gradient(145deg, #166534, #14532d);
  color: #ecfdf5;
  border-bottom-right-radius: 4px;
}

.chat-bubble--meta {
  align-self: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(37, 211, 102, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

@media (max-width: 900px) {
  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wa-deep);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-intro {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 40px;
  line-height: 1.65;
}

/* About */
.about {
  background: var(--surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.about__visual {
  min-height: 320px;
  background: linear-gradient(145deg, #ecfdf5 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about__visual-inner {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--wa-deep) 0%, var(--ink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86efac;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
}

.about__content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__content p {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.7;
}

.about__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__visual {
    min-height: 240px;
  }

  .about__content {
    padding: 36px 24px;
  }
}

/* Services */
.services {
  background: var(--surface-2);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wa-deep), var(--wa));
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.15), rgba(13, 148, 136, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Platform */
.platform {
  background: linear-gradient(180deg, var(--ink) 0%, #0f172a 50%, var(--ink) 100%);
  color: #e2e8f0;
}

.platform .section-label {
  color: #4ade80;
}

.platform .section-title {
  color: #f8fafc;
}

.platform .section-intro {
  color: #94a3b8;
}

.platform__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
}

.platform__copy {
  padding: 48px 40px;
}

.platform__copy ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.platform__copy li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: #cbd5e1;
  line-height: 1.55;
}

.platform__copy li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

.platform__visual {
  min-height: 280px;
  background: linear-gradient(145deg, #064e3b 0%, var(--ink-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

@media (max-width: 768px) {
  .platform__split {
    grid-template-columns: 1fr;
  }

  .platform__copy {
    padding: 36px 24px;
  }
}

/* Outcomes */
.outcomes {
  background: var(--surface);
}

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .outcomes__grid {
    grid-template-columns: 1fr;
  }
}

.outcome-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.outcome-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.outcome-card__num {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--wa-deep);
  background: rgba(13, 148, 136, 0.12);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.outcome-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.outcome-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #ecfdf5 0%, var(--surface-2) 100%);
}

.contact__box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  padding: 48px 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.contact__box p {
  color: var(--muted);
  margin: 0 0 24px;
}

.contact__email {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.contact__email a {
  color: var(--wa-deep);
  text-decoration: none;
}

.contact__email a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 28px 24px;
  background: var(--ink);
  color: #64748b;
  font-size: 0.875rem;
  text-align: center;
}

.site-footer strong {
  color: #e2e8f0;
  font-family: var(--font-display);
}
