/* ========================================
   SmartShip - AI Last-Mile Delivery
   Green/Eco Theme Stylesheet
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2d3436;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 204, 113, 0.12);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #27ae60;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-logo span.brand-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #7f8c8d;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2ecc71;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #27ae60;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #27ae60;
}

.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #2d3436;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #1a7a42 0%, #20925a 30%, #1a8a6e 70%, #177a6a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(46, 204, 113, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(22, 160, 133, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(243, 156, 18, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p.subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-tracking {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 6px;
  backdrop-filter: blur(8px);
}

.hero-tracking input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.hero-tracking input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-tracking button {
  background: #f39c12;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.hero-tracking button:hover {
  background: #e67e22;
  transform: translateY(-1px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #27ae60;
  padding: 15px 36px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ---------- AI Assistant Floating Button ---------- */
.ai-float-btn {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(46, 204, 113, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.ai-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(46, 204, 113, 0.5);
}

.ai-float-btn .pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.3);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Section Utilities ---------- */
.section {
  padding: 90px 0;
}

.section--white {
  background: #ffffff;
}

.section--green-light {
  background: #f0faf4;
}

.section--warm-gray {
  background: #f8f7f5;
}

.section--green-soft {
  background: linear-gradient(180deg, #e8f8f0 0%, #f0faf4 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 1.05rem;
  color: #7f8c8d;
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid #eef5ee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(46, 204, 113, 0.1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #f0faf4;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* ---------- Tracking Demo ---------- */
.tracking-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.tracking-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef5ee;
}

.tracking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.tracking-card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
}

.tracking-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e8f8f0;
  color: #27ae60;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tracking-status-badge .dot {
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.tracking-timeline {
  position: relative;
  padding-left: 28px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item .dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 3px solid #fff;
}

.timeline-item.completed .dot {
  background: #2ecc71;
}

.timeline-item.active .dot {
  background: #f39c12;
  box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.2);
}

.timeline-item .time {
  font-size: 0.75rem;
  color: #95a5a6;
  margin-bottom: 3px;
}

.timeline-item .label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.timeline-item .desc {
  font-size: 0.8rem;
  color: #7f8c8d;
}

/* Map placeholder */
.tracking-map {
  background: linear-gradient(135deg, #e8f8f0 0%, #d5f0e3 100%);
  border-radius: 20px;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0eadb;
  position: relative;
  overflow: hidden;
}

.tracking-map::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h80v80H10z' fill='none' stroke='%2327ae60' stroke-opacity='0.06' stroke-width='0.5'/%3E%3Cpath d='M30 10v80M50 10v80M70 10v80M10 30h80M10 50h80M10 70h80' fill='none' stroke='%2327ae60' stroke-opacity='0.06' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.tracking-map-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.tracking-map-content .map-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.tracking-map-content p {
  font-size: 0.9rem;
  color: #27ae60;
  font-weight: 500;
}

.tracking-map-content .map-sub {
  font-size: 0.78rem;
  color: #7f8c8d;
  margin-top: 4px;
}

.map-route {
  position: absolute;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #2ecc71 60%, transparent 60%);
  background-size: 10px 2px;
  top: 55%;
  left: 20%;
  z-index: 1;
}

.map-route::before {
  content: '';
  position: absolute;
  right: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  background: #f39c12;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.2);
}

.map-route::after {
  content: '';
  position: absolute;
  left: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  background: #2ecc71;
  border-radius: 50%;
}

/* ---------- AI Features ---------- */
.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ai-feature-block {
  background: #fff;
  border-radius: 18px;
  padding: 40px 32px;
  border: 1px solid #eef5ee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-feature-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(46, 204, 113, 0.1);
}

.ai-feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e8f8f0, #d5f0e3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.ai-feature-block h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.ai-feature-block p {
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.7;
}

/* ---------- Trust / Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #27ae60;
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #636e72;
  font-weight: 500;
}

/* ---------- Enterprise CTA ---------- */
.enterprise-cta-box {
  background: linear-gradient(135deg, #1a7a42 0%, #177a6a 100%);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.enterprise-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.enterprise-cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.enterprise-cta-box p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.btn-enterprise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f39c12;
  color: #fff;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  position: relative;
}

.btn-enterprise:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  background: #1a2332;
  color: #ccc;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2ecc71;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #8899aa;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: #8899aa;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #2ecc71;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #667788;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text {
  font-size: 0.85rem;
  color: #555;
  flex: 1;
}

.cookie-banner-text a {
  color: #27ae60;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: #2ecc71;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-cookie-accept:hover {
  background: #27ae60;
}

.btn-cookie-settings {
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-cookie-settings:hover {
  border-color: #27ae60;
  color: #27ae60;
}

/* ---------- Cookie Page Styles ---------- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f0faf4 0%, #e8f8f0 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1rem;
  color: #7f8c8d;
}

.cookie-content {
  padding: 60px 0 80px;
}

.cookie-content .content-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.cookie-section {
  margin-bottom: 48px;
}

.cookie-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f8f0;
}

.cookie-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3436;
  margin: 20px 0 10px;
}

.cookie-section p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.cookie-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.cookie-section ul li {
  list-style: disc;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 4px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.88rem;
}

.cookie-table th {
  background: #f0faf4;
  color: #1a1a2e;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid #d5f0e3;
}

.cookie-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.cookie-table tr:hover td {
  background: #fafafa;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .tracking-demo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 130px 0 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p.subtitle {
    font-size: 1rem;
  }

  .hero-tracking {
    flex-direction: column;
    gap: 0;
  }

  .hero-tracking input {
    width: 100%;
    text-align: center;
  }

  .hero-tracking button {
    width: 100%;
    border-radius: 10px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .ai-features-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-cta-box {
    padding: 40px 24px;
  }

  .enterprise-cta-box h2 {
    font-size: 1.5rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-value {
    font-size: 2rem;
  }
}
