/* ===== Tudelü AI Operations Portal — style.css ===== */
@import url('https://use.typekit.net/hgd0bnn.css');

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #ff5100;
  --orange-hover: #e64900;
  --yellow: #ece83a;
  --dark: #111111;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --border: #e0e0e0;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 84px;
  --font: 'roc-grotesk-wide', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button, select { font-family: inherit; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--orange);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.navbar__logo svg {
  display: block;
  height: 30px;
  width: auto;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.navbar__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 80px 24px 72px;
}

.hero__headline {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  font-weight: 400;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}

.hero__cta:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero__version {
  margin-top: 24px;
  font-size: 13px;
  color: var(--yellow);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Section scaffolding ---------- */
.section {
  padding: 64px 24px;
}

.section--light {
  background: var(--light-bg);
}

.section--white {
  background: var(--white);
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

/* ---------- Login ---------- */
.login-section {
  padding: 80px 24px;
  background: var(--white);
}

.login-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.login-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 81, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.login-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.login-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.login-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.login-card__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--dark);
  background: var(--light-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.login-card__input::placeholder {
  color: #999;
}

.login-card__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
  background: var(--white);
}

.login-card__input--error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.login-card__error {
  font-size: 13px;
  color: #e53935;
  text-align: left;
  display: none;
}

.login-card__error.visible {
  display: block;
}

/* ---------- Buttons (shared) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  width: 100%;
}

.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 81, 0, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Dashboard ---------- */
.dashboard {
  display: none;
}

.dashboard.active {
  display: block;
}

/* Welcome bar */
.welcome-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px;
}

.welcome-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.welcome-bar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.welcome-bar__text h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.welcome-bar__text p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.welcome-bar__status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.signout-link {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  font-family: var(--font);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signout-link:hover {
  color: var(--orange);
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

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

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card__icon--deals { background: rgba(255, 81, 0, 0.1); color: var(--orange); }
.feature-card__icon--followup { background: rgba(33, 150, 243, 0.1); color: #1976d2; }
.feature-card__icon--log { background: rgba(76, 175, 80, 0.1); color: #2e7d32; }
.feature-card__icon--pipeline { background: rgba(156, 39, 176, 0.1); color: #7b1fa2; }
.feature-card__icon--email { background: rgba(255, 152, 0, 0.1); color: #e65100; }
.feature-card__icon--reminder { background: rgba(0, 150, 136, 0.1); color: #00796b; }
.feature-card__icon--crm { background: rgba(63, 81, 181, 0.1); color: #283593; }
.feature-card__icon--coaching { background: rgba(236, 232, 58, 0.15); color: #9e9d24; }

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.feature-card__example {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* ---------- How-to Box ---------- */
.howto-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.howto-box__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.howto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.howto-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.howto-list li .howto-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto-list li .howto-badge {
  display: inline-block;
  background: rgba(236, 232, 58, 0.2);
  color: #8a8700;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* ---------- Your Info Form ---------- */
.info-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
}

.form-group input[readonly] {
  background: var(--light-bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.btn--save {
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.btn--save:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.save-confirm {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 6px;
}

.save-confirm.visible {
  display: inline-flex;
}

/* ---------- Feedback ---------- */
.feedback-section {
  max-width: 960px;
  margin: 0 auto;
}

.feedback-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 32px;
}

.feedback-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.feedback-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feedback-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: var(--light-bg);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.6;
}

.feedback-card textarea::placeholder {
  color: #999;
}

.feedback-card textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 81, 0, 0.1);
  background: var(--white);
}

.feedback-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.feedback-card__note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.feedback-confirm {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
  display: none;
}

.feedback-confirm.visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Updates timeline */
.updates-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.updates-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.update-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 24px;
  border-left: 2px solid var(--border);
  margin-left: 4px;
}

.update-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.update-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
}

.update-item--current::before {
  background: var(--orange);
}

.update-item__version {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.update-item__version .update-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.update-badge--live {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.update-badge--coming {
  background: rgba(255, 81, 0, 0.08);
  color: var(--orange);
}

.update-item__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  line-height: 1.8;
}

.footer strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar__logo svg {
    height: 24px;
  }

  .navbar__label {
    display: none;
  }

  .hero {
    padding: 56px 20px 48px;
  }

  .section {
    padding: 48px 20px;
  }

  .login-card {
    padding: 36px 24px;
  }

  .welcome-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .welcome-bar__status {
    width: 100%;
    justify-content: space-between;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 22px 20px;
  }

  .howto-box {
    padding: 28px 24px;
  }

  .feedback-card {
    padding: 28px 24px;
  }

  .updates-card {
    padding: 24px;
  }

  .info-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar__badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .hero__cta {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
