/* ============================================================
   Tably — Landing Page
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --t-primary: #FF6B35;
  --t-primary-dark: #E55A2B;
  --t-bg: #0A0A0F;
  --t-surface: #12121A;
  --t-surface-2: #1A1A25;
  --t-card: #16161F;
  --t-text: #F0F0F5;
  --t-text-2: #A0A0B8;
  --t-text-3: #6E6E88;
  --t-border: #2A2A3A;
  --t-green: #10B981;
  --t-blue: #3B82F6;
  --t-purple: #8B5CF6;
  --t-radius: 16px;
  --t-radius-sm: 10px;
  --t-transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--t-bg);
  color: var(--t-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- Navbar ---- */
.t-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--t-border);
}
.t-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
}
.t-nav__logo { font-size: 1.4rem; font-weight: 800; color: var(--t-text); text-decoration: none; letter-spacing: -.02em; }
.t-nav__logo span { color: var(--t-primary); }
.t-nav__actions { display: flex; align-items: center; gap: 10px; }

.t-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: none;
  font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all var(--t-transition); text-decoration: none;
}
.t-btn--primary { background: var(--t-primary); color: #fff; }
.t-btn--primary:hover { background: var(--t-primary-dark); transform: translateY(-1px); }
.t-btn--ghost { background: transparent; color: var(--t-text-2); border: 1.5px solid var(--t-border); }
.t-btn--ghost:hover { border-color: var(--t-primary); color: var(--t-primary); }
.t-btn--sm { padding: 8px 16px; font-size: .8rem; }
.t-btn--lg { padding: 14px 32px; font-size: 1rem; }
.t-lang-btn {
  padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--t-border);
  background: transparent; color: var(--t-text-2); font-size: .75rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all var(--t-transition);
}
.t-lang-btn:hover { border-color: var(--t-primary); color: var(--t-primary); }

/* ---- Hero ---- */
.t-hero {
  padding: 140px 0 80px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,107,53,.08) 0%, transparent 60%);
}
.t-hero__badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.2);
  color: var(--t-primary); font-size: .78rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .02em;
}
.t-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em;
  margin-bottom: 16px;
}
.t-hero__title span { color: var(--t-primary); }
.t-hero__sub {
  font-size: clamp(.95rem, 2vw, 1.15rem); color: var(--t-text-2);
  max-width: 560px; margin: 0 auto 32px; line-height: 1.7;
}
.t-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Section ---- */
.t-section { padding: 80px 0; }
.t-section__label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--t-primary); margin-bottom: 8px;
}
.t-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.t-section__sub { color: var(--t-text-2); max-width: 520px; font-size: .95rem; margin-bottom: 40px; }
.t-section--center { text-align: center; }
.t-section--center .t-section__sub { margin-left: auto; margin-right: auto; }

/* ---- Services Grid ---- */
.t-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.t-service-card {
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--t-radius); padding: 28px 24px;
  transition: all var(--t-transition); position: relative; overflow: hidden;
}
.t-service-card:hover { border-color: rgba(255,107,53,.3); transform: translateY(-2px); }
.t-service-card--upcoming { opacity: .6; }
.t-service-card--upcoming:hover { opacity: .8; }
.t-service-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 16px;
}
.t-service-card__icon--orange { background: rgba(255,107,53,.12); color: var(--t-primary); }
.t-service-card__icon--green { background: rgba(16,185,129,.12); color: var(--t-green); }
.t-service-card__icon--blue { background: rgba(59,130,246,.12); color: var(--t-blue); }
.t-service-card__icon--purple { background: rgba(139,92,246,.12); color: var(--t-purple); }
.t-service-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.t-service-card__desc { font-size: .85rem; color: var(--t-text-2); line-height: 1.6; }
.t-service-card__badge {
  position: absolute; top: 16px; right: 16px;
  padding: 3px 10px; border-radius: 12px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.t-badge--active { background: rgba(16,185,129,.12); color: var(--t-green); }
.t-badge--soon { background: rgba(139,92,246,.12); color: var(--t-purple); }

/* ---- Partners Grid ---- */
.t-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.t-partner-card {
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm); padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--t-transition);
}
.t-partner-card:hover { border-color: rgba(255,107,53,.3); }
.t-partner-card__avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--t-surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--t-primary); flex-shrink: 0;
}
.t-partner-card__name { font-size: .9rem; font-weight: 600; }
.t-partner-card__plan { font-size: .72rem; color: var(--t-text-3); margin-top: 2px; }

/* ---- Auth Modal ---- */
.t-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.t-modal-overlay.active { display: flex; }
.t-modal {
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--t-radius); padding: 32px; width: 100%; max-width: 420px;
  position: relative; animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.t-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--t-surface-2); color: var(--t-text-2);
  cursor: pointer; font-size: .9rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-transition);
}
.t-modal__close:hover { background: var(--t-border); color: var(--t-text); }
.t-modal__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.t-modal__sub { font-size: .85rem; color: var(--t-text-2); margin-bottom: 24px; }
.t-modal__tabs { display: flex; gap: 0; margin-bottom: 20px; }
.t-modal__tab {
  flex: 1; padding: 10px; text-align: center; cursor: pointer;
  font-size: .85rem; font-weight: 500; border-bottom: 2px solid var(--t-border);
  color: var(--t-text-3); transition: all .2s;
}
.t-modal__tab.active { border-color: var(--t-primary); color: var(--t-primary); }
.t-form-group { margin-bottom: 14px; }
.t-form-group label { display: block; font-size: .78rem; font-weight: 500; color: var(--t-text-2); margin-bottom: 5px; }
.t-input {
  width: 100%; padding: 11px 14px; border-radius: var(--t-radius-sm);
  border: 1.5px solid var(--t-border); background: var(--t-bg);
  color: var(--t-text); font-family: inherit; font-size: .88rem; outline: none;
  transition: border-color var(--t-transition);
}
.t-input:focus { border-color: var(--t-primary); }
.t-input::placeholder { color: var(--t-text-3); }
.t-form-msg { padding: 10px; border-radius: 8px; margin-bottom: 12px; font-size: .82rem; display: none; }
.t-form-msg--error { background: rgba(239,68,68,.1); color: #EF4444; display: block; }
.t-form-msg--success { background: rgba(16,185,129,.1); color: #10B981; display: block; }

/* ---- Footer ---- */
.t-footer {
  border-top: 1px solid var(--t-border); padding: 40px 0;
  text-align: center; color: var(--t-text-3); font-size: .82rem;
}
.t-footer a { color: var(--t-text-2); text-decoration: none; }
.t-footer a:hover { color: var(--t-primary); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .t-hero { padding: 120px 0 60px; }
  .t-hero__actions { flex-direction: column; align-items: center; }
  .t-section { padding: 60px 0; }
  .t-modal { padding: 24px; margin: 16px; }
  .t-nav__inner { padding: 12px 16px; }
}
